What’s a good Java, curses-like, library for terminal applications? [closed]
Lanterna I found the Lanterna library recently. Haven’t had the opportunity to use it yet but it looks like a more up-to-date alternative to the others.
Lanterna I found the Lanterna library recently. Haven’t had the opportunity to use it yet but it looks like a more up-to-date alternative to the others.
1.Ctrl+A, then Esc 2. After that, you should be able to move your cursor around using the arrow keys:ā, ā, PgUp, PgDn and sometimes using the mouse wheel 3. Return control: Q or Esc
Look. This is way old, but on the off chance that someone from Google finds this, absolutely the best solution to this – (and it is AWESOME) – is to use ConEmu (or a package that includes and is built on top of ConEmu called cmder) and then either use plink or putty itself to … Read more
Copy the text: select the text and press mouse left-button with shift key press too. Paste the text with shift key + middle-button
There is a command line option for logging. The output is saved to screenlog.n file, where n is a number of the screen. From man pages of screen: ā-Lā Tell screen to turn on automatic output logging for the windows.
As Jose answered, screen -d -r should do the trick. This is a combination of two commands, as taken from the man page. screen -d detaches the already-running screen session, and screen -r reattaches the existing session. By running screen -d -r, you force screen to detach it and then resume the session. If you … Read more
To write the entire contents of the scrollback buffer to a file, type Ctrl + A and : to get to command mode, then hardcopy -h <filename> In older versions of screen, if you just do hardcopy -h, it just writes to the file -h. This was fixed in version 4.2.0, so hardcopy -h writes … Read more
Press Ctrl+A then : and then type scrollback 10000 to get a 10000 line buffer, for example. You can also set the default number of scrollback lines by adding defscrollback 10000 to your ~/.screenrc file. To scroll (if your terminal doesn’t allow you to by default), press Ctrl+A then Esc and then scroll (with the … Read more
To list all of the screen sessions for a user, run the following command as that user: screen -ls To see all screen sessions on a specific machine you can do: ls -laR /var/run/screen/ I get this on my machine: gentle ~ # ls -laR /var/run/screen/ /var/run/screen/: total 1 drwxrwxr-x 4 root utmp 96 Mar … Read more
I believe you can just add a line like this to your ~/.screenrc: termcapinfo xterm* ti@:te@ Where “xterm*” is a glob match of your current TERM. To confirm it works, ^A^D to detach from your screen, then screen -d -r to reattach, then ls a few times, and try to scroll back. It works for … Read more