This is my problem, maybe one of you knows the answer.
When writing a char in the bottom right corner of the
terminal, it automatically scrolls down. And this I don't
want. So is there a way to disable scrolling in a vt100
using escape sequences ? Or simply tell the terminal
not to got to the next line when writing a char at the end
of a line ?
For the moment, this is what I do: I write the first to lines
and set the scrolling region to lines 1 to 2. Then I can write
the rest of my lines to the terminal. I have googled and only
found how to enable scrolling for the entire display (\033[r).
I also spent several hours in ncurses source code in the
hope of finding the answer but no result so far.
Have you any idea ?
Kind regards,
Guillaume Quintin.
Scroll lock works for me in xterm.
>
> Kind regards,
> Guillaume Quintin.
>
--Valentin
What is the escape sequence to lock scroll ?
AFAIK there are no escape sequences, but single bytes (XOFF/XON) in most
terminals mapped to ^s and ^q respectively.
[a]
\033[?7h
\033[?7l
From the VT100 user guide [1] :
DECAWM – Autowrap Mode (DEC Private)
This is a private parameter applicable to set mode (SM) and reset mode
(RM) control sequences. The reset state causes any displayable
characters received when the cursor is at the right margin to replace
any previous characters there. The set state causes these characters
to advance to the start of the next line, doing a scroll up if
required and permitted.
(It works in st by the way :)
|2345 |
instead of
|12345|
It works perfectly on my xterm : http://i.imgur.com/fEPvV.png