4 ms·
By messes up terminal history do you mean when you push up in terminal the previous lines that show up are rendered badly or that your actual history is effecte
by pdenya 14y ago
By messes up terminal history do you mean when you push up in terminal the previous lines that show up are rendered badly or that your actual history is effected in some way?
- milkbikis 14y agoI used the ANSI control codes for moving the cursor, which seems to overwrite previous lines. Not sure if there's another way to achieve that without overwriting lines though.
- ericbb 14y agoMaybe use \033[L (ANSI for insert-line). Edit: If I understand what you're doing, then maybe you can use this: tput ind; tput home; tput il1; echo -n "header"; tput el; tput cup $LINES 0 Use "man terminfo" to lookup things like "il1" and use "infocmp" to see what they translate to in your terminal.