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]

rxvt -e 'bash -l -i' + use of $LINES & $COLUMNS in .profile


I just want to put this in the archives.

To use $LINES and/or $COLUMNS in the ~/.profile script one has to be aware
that there is a slight delay before they're actually available.

The delay is something like 200ms (P2/450), maybe less, but very much
noticeable if one uses $LINES/$COLUMNS early.

This:

$ head -3 ~/.profile
# Can we make COLUMNS and LINES appear maybe?
echo -en ".\b \b"
kill -SIGWINCH $$

...can help.

/Hannu E K Nevalainen, B.Sc. EE - 59°16.37'N, 17°12.60'E
-- UTC+01, DST -> UTC+02  --
--END OF MESSAGE--


--
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]