I would like to configure GNU screen such that it stores the command histories of all the different windows in different files.
I know by default GNU screen does not store the command histories (of its different windows) in a file at all (it stores them in memory instead), but it might be possible to tell it to store them in files instead?
The different command history files should have the names
<session>.<window>.history, or similar.
Does anyone have an idea how to do that?
(Just to be clear, I want each GNU screen window to write a different file. I like that each window has a different history, and I typically run different types of commands in the different windows.)