![]() The io-files module open the file with the editor. The io-music module runs on a single file, or all files from selected directory (artist, album. The io-man module runs mandoc(1) to display a man page. The io-search module acts like an interactive grep -r on the selected directory: it runs another iomenu with the content of every file, and while enter is pressed, it open the selected file at the selected line in background and prompt you again. The io-mail module runs mblaze(1) to prompt a mail (with iomenu(1) again) and display it in a pager. The io-irc module open a simple client for ii(1) with the ii-filter-3 script for prettier output. The io scripts: the main one is io, and for every (in bold white with a leading #), it will call an io- script with the path as an argument in an abduco(1) session, which means you can attach and detach it like tmux(1) (existing sessions are displayed at the top). bashrc:ġ) it doesn't require sudo privileges and can be easilly taken on the go.Iomenu(1) is another dmenu(1) for the terminal, but with support for categories. I would recommend this over bashBedlam's answer of using tic, as editing. You can change the sudo bash behavior by doing sudo su before the procedure I listed. This will make so that when you are scrolling back, you'll know exactly where you used div. This makes it so that when you do the div command, it enters two dividers with 10 new lines between them, followed by a clean command. I also like to add div (for divider): alias div='echo echo "-" echo echo echo echo echo echo echo echo echo echo echo echo "-" clean' In bash, enter: nano ~/.bashrcĪnd add this line at the end: alias clean="printf '\33[H\33[2J'" ![]() This answer builds off of stingray's answer (which he did some really good work on) and is meant to complete it.ġ - To clear without loosing scrollback, enter the following command in console (no need for python as suggested in stringray's answer): printf '\33[H\33[2J'Ģ - To avoid having to memorize this, you can edit your. Raspbian Stretch Lite (This is older than Buster.).I confirmed, as far as I use the official repositories, the procedure is valid on For example, $ clear -VĪnd this can be read as " ncurses 6.1 released on ". So you can use -x option if the release date of ncurses is equal to or newer than. add -x option to clear/tput to make the E3 extension optional I didn't see this issue with earlier to 14.04(guessing). modify the clear program to take into account the E3 extendedĬapability to clear the terminal's scrollback buffer (patch by ![]() Short Answer: If you have relatively newer version of clear, you can avoid the scrollbuffer's being cleared by -x option. ![]() restart your terminal and clear should now no longer remove the scrollbuffer This will load your modified terminfo and store it. And from your terminal execute: sudo tic -x tempfile You are looking for: E3=\E[3J,įind this and just remove it. This will output the extended capabilities for this terminal type to 'tempfile'. Where you obviously replace xterm-256color with the output from the first command. Now enter the command: infocmp -x xterm-256color > tempfile We are going to remove this E3 capability:įirst, find out the type of your terminal: echo $TERMįor me this resulted in "xterm-256color". If you type "man clear" you will see that the manual states:Ĭlear clears your screen if this is possible, including its scrollback buffer (if the extended "E3" capability is defined). This took me a while to figure out so I guess I should share how I got this to work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |