delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/30/07:41:07

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Originating-IP: [62.21.237.84]
X-Originating-Email: [mdvpost AT hotmail DOT com]
From: "Micha Nelissen" <mdvpost AT hotmail DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Scroll region; termcap 'cs' capability
Date: Wed, 30 Apr 2003 13:40:48 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <BAY1-DAV29KvpvDtDJd0001a705@hotmail.com>
X-OriginalArrivalTime: 30 Apr 2003 11:40:56.0639 (UTC) FILETIME=[5D0954F0:01C30F0D]

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019