Re: Looking for ANSI/VT100 code replacement.

From: Peter Jeremy (PeterJeremy_at_optushome.com.au)
Date: 05/22/05

  • Next message: Charles Sprickman: "watching a file for ownership change"
    Date: Sun, 22 May 2005 11:49:59 +1000
    To: alexander <arundel@h3c.de>
    
    

    On Sun, 2005-May-22 00:09:35 +0200, alexander wrote:
    >On Sun May 22 05, Peter Jeremy wrote:
    >>
    >> Can you please confirm that you also see the problem when you are using
    >> xterm (not Eterm). Can you also please advise what versions of FreeBSD,
    >> X11 and xterm/Eterm you are using.
    >
    >OK. Seems like you somehow knew what was going on here. The problem has now
    >clearly shifted towards the Eterm code. Xterm display the VT100 codes
    >correctly.

    The AVI you posted showed that Eterm was not updating the display for
    partial lines. I tried Eterm myself and found that it needs a newline
    (or maybe CR) to make it display anything. You must be able to change
    this behaviour, since otherwise curses would not work at all, but it's
    not clear how to do it from a quick look at the man page.

    >However I'm still thinking of replacing the whole VT100 stuff with a set
    >of syscalls. So...is there a way to reposition the cursor inside the
    >sdtout stream just by using syscalls? Can I use lseek() or some other
    >syscall to change the current FD position?

    No. You can't seek within a TTY. The only way to re-position the
    cursor is to write magic character sequences that are recognized as
    re-position requests by code that implements the TTY (eg xterm/Eterm).

    >I had a look at the 'burncd' code and the code works brilliantly even
    >under Eterm.

    Burncd is sending CR characters and re-writing the entire line, rather
    than re-positioning the cursor within the line.

    -- 
    Peter Jeremy
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    

  • Next message: Charles Sprickman: "watching a file for ownership change"

    Relevant Pages

    • Re: chroot question.
      ... [snip, Mandrake running in chroot environment under Debian] ... I'd think/hope it would install something like eterm, not xterm. ... the "owner" keyword in fstab to make it so that the currently logged-in ...
      (comp.os.linux.misc)
    • Re: chroot question.
      ... [snip, Mandrake running in chroot environment under Debian] ... I'd think/hope it would install something like eterm, not xterm. ... the "owner" keyword in fstab to make it so that the currently logged-in ...
      (comp.os.linux.security)
    • Re: Looking for ANSI/VT100 code replacement.
      ... But my problem is with xterm or Eterm. ... xterm/Eterm have much more overhead than the console. ... you are seeing the cursor in random locations. ...
      (freebsd-hackers)
    • Re: Looking for ANSI/VT100 code replacement.
      ... But my problem is with xterm or Eterm. ... The console does not. ... the terminal emulation both provide. ...
      (freebsd-hackers)
    • Re: "su - root" and "xterm"
      ... Thomas Dickey wrote: ... I just compiled eterm and gtkterm and they ... > pty interface as eterm, it doesn't need it on your box). ... xterm supports ANSI color, VT220 emulation and UTF-8 ...
      (comp.unix.bsd.freebsd.misc)