This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Scroll region; termcap 'cs' capability


Hi,

By default this capability is not enabled, but after some researching of the
source code (winsup/cygwin/fhandler-console.cc) I found that it can be
supported. This is what I tried and doesn't work properly, start with an
empty console:

bash$ echo -e '\E[10;0Hhello\E[11;20r\E15;0H\EM\E[0;0H'

The result should be that hello is displayed on line 10, and a scroll on
line 11 through 20, but no noticeable effect because these lines are empty.
The actual result is that hello is displayed twice: once on line 10, once on
line 11. My 'infocmp -Cr' looks like this:

---begin termcap---
#       Reconstructed via infocmp from file: /usr/share/terminfo/c/cygwin
cygwin|ansi emulation for Cygwin:\
        :am:hs:in:ms:xo:\
        :Co#8:it#8:pa#64:\
        :&7=^Z:@7=\E[4~:AB=\E[4%dm:AF=\E[3%dm:AL=\E[%dL:DC=\E[%dP:\
        :DL=\E[%dM:DO=\E[%dB:F1=\E[23~:F2=\E[24~:F3=\E[25~:\
        :F4=\E[26~:F5=\E[28~:F6=\E[29~:F7=\E[31~:F8=\E[32~:\
        :F9=\E[33~:FA=\E[34~:IC=\E[%d@:K2=\E[G:LE=\E[%dD:\
        :RI=\E[%dC:UP=\E[%dA:\
        :im=\E[4h:k1=\E[[A:k2=\E[[B:k3=\E[[C:k4=\E[[D:k5=\E[[E:\
        :k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:\
        :kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kb=^H:kd=\E[B:\
        :kh=\E[1~:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:md=\E[1m:\
        :me=\E[0;10m:mk=\E[8m:mr=\E[7m:nd=\E[C:nw=^M^J:\
        :op=\E[39;49m:r1=\Ec\E]R:rc=\E8:sc=\E7:se=\E[27m:sf=^J:\
        :so=\E[7m:sr=\EM:ta=^I:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:\
        :ts=\E];:u6=\E[%i%d;%dR:u7=\E[6n:u8=\E[?6c:u9=\E[c:\
        :ue=\E[24m:up=\E[A:us=\E[4m:
---end termcap---

I am doing this because I am trying to do split screens on a remotely run
screen on a linux system. My $TERM is cygwin, locally and remotely, and with
the same cygwin terminfo file. When the cs capability is removed, it works
'correctly' but all lines are jumping up and down. This jumping is due to
screen scrolling the entire screen, then redrawing the affected split
regions that didn't want scrolling.

Thanks in advance,

Micha.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]