Re: [dev] a few questions about watch in ubase

From: Greg Reagle <greg.reagle_AT_umbc.edu>
Date: Fri, 22 Apr 2016 09:33:31 -0400

Thank you to Dimitris and Ryan for answering my questions--very informative.

On 04/21/2016 02:04 PM, Greg Reagle wrote:
> Please excuse me if these questions are rudimentary. I am using Debian
> Stable.
>
> Why is watch linked with the crypt library?
> cc -s -o watch watch.o libutil.a -lcrypt
> It does not seem to need it.
>
> watch uses "\x1b[2J\x1b[H" to clear the screen, which are the two
> control codes Erase Screen and Cursor Home. These seem to be ANSI
> escape control codes.
>
> Is it appropriate to use ANSI escape codes in the program rather than
> using something like tput or terminfo, or to just execute the "clear"
> command? Are the escape codes portable?
>
Received on Fri Apr 22 2016 - 15:33:31 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 22 2016 - 15:36:11 CEST