ANSI or VT100 driver for a serial LCD? - Embedded

This is a discussion on ANSI or VT100 driver for a serial LCD? - Embedded ; I have a 2x24 character HD44780 LCD that I want to use as a mini-terminal. Basically I need something that can scroll up and down, position the cursor at a specific place, and ideally do some emphasis (like reverse video ...

+ Reply to Thread
Results 1 to 7 of 7

Thread: ANSI or VT100 driver for a serial LCD?

  1. ANSI or VT100 driver for a serial LCD?

    I have a 2x24 character HD44780 LCD that I want to use as a mini-terminal.

    Basically I need something that can scroll up and down, position the
    cursor at a specific place, and ideally do some emphasis (like reverse
    video or underline.)

    I've googled all over the place, but I haven't found anything promising...

    I recall seeing something like that a long time ago, but I can't find
    it.....

    Anyone know of anything like this?

    Thanks,

    --Yan

  2. Re: ANSI or VT100 driver for a serial LCD?

    "CptDondo" wrote in message
    news:12e9oitdoaavg7b@corp.supernews.com

    > I have a 2x24 character HD44780 LCD that I want to use as a
    > mini-terminal.

    ....
    > I've googled all over the place, but I haven't found anything
    > promising...
    >
    > I recall seeing something like that a long time ago, but I can't find
    > it.....
    >
    > Anyone know of anything like this?


    Would it work to copy the ansi-generic entry in /etc/termcap (you'd have to
    verify the other tc values, of course, commenting out those that aren't
    applicable) to something like:

    ansi-24x2|HD44780 LCD terminal:\
    :am:xo:\
    :co#24:li#2:tc=vanilla:tc=ansi+csr:tc=ansi+cup:\
    :tc=ansi+rca:tc=ansi+erase:tc=ansi+tabs:tc=ansi+lo cal:\
    :tc=ansi+idc:tc=ansi+idl:tc=ansi+rep:tc=ansi+sgrbo ld:\
    :tc=ansi+arrows:

    and then run an mgetty in /etc/inittab using that terminal spec. on ttyS[?]
    (assuming it's connected to a serial port)?


  3. Re: ANSI or VT100 driver for a serial LCD?

    CptDondo wrote:
    > I have a 2x24 character HD44780 LCD that I want to use as a mini-terminal.

    [snip]
    > Anyone know of anything like this?


    Can the lcdproc code (http://www.lcdproc.org/) be adapted to suit your
    needs?

  4. Re: ANSI or VT100 driver for a serial LCD?

    "Patrick" wrote in message
    news:4kk8umFcm17aU1@individual.net

    ....
    > and then run an mgetty in /etc/inittab using that terminal spec. on
    > ttyS[?] (assuming it's connected to a serial port)?


    Sorry, that should be mingetty or getty.

  5. Re: ANSI or VT100 driver for a serial LCD?

    On Thu, 17 Aug 2006 18:18:53 -0400, John-Paul Stewart wrote:

    > CptDondo wrote:
    >> I have a 2x24 character HD44780 LCD that I want to use as a mini-terminal.

    > [snip]
    >> Anyone know of anything like this?

    >
    > Can the lcdproc code (http://www.lcdproc.org/) be adapted to suit your
    > needs?


    I found it shortly after I posted.... But it is overkill for my needs.

    I really just need a small subset of ANSI so I think I'll just roll my own....

    --Yan


    --
    o__
    ,>/'_ o__
    (_)\(_) ,>/'_ o__
    Yan Seiner, PE (_)\(_) ,>/'_ o__
    Certified Personal Trainer (_)\(_) ,>/'_ o__
    Licensed Professional Engineer (_)\(_) ,>/'_
    Who says engineers have to be pencil necked geeks? (_)\(_)


  6. Re: ANSI or VT100 driver for a serial LCD?

    Captain Dondo wrote:
    > On Thu, 17 Aug 2006 18:18:53 -0400, John-Paul Stewart wrote:
    >
    >> CptDondo wrote:
    >>> I have a 2x24 character HD44780 LCD that I want to use as a mini-terminal.

    >> [snip]
    >>> Anyone know of anything like this?

    >> Can the lcdproc code (http://www.lcdproc.org/) be adapted to suit your
    >> needs?

    >
    > I found it shortly after I posted.... But it is overkill for my needs.
    >
    > I really just need a small subset of ANSI so I think I'll just roll my own....
    >
    > --Yan
    >
    >

    Its not hard. Good luck.

  7. Re: ANSI or VT100 driver for a serial LCD?

    CptDondo wrote:

    > Basically I need something that can scroll up and down, position the
    > cursor at a specific place, and ideally do some emphasis (like reverse
    > video or underline.)


    Just generate yourself a terminfo file and you are done. This way you will
    be able to use ncurses or slang library for programming.

    I did one for Matrix Orbital 202-25 and 204-25 some time ago:

    matrix202|Matrix-Orbital LK-202-25 LCD module,
    am, cols#20, lines#2,
    clear=\376X, cnorm=\376J\376S, civis=\376T\376K,
    cub1=\376L, cuf1=\376M, cup=\376G%p2%{1}%+%c%p1%{1}%+%c,
    home=\376H,rs2=\376C\376Q\376S,

    matrix204|Matrix-Orbital LK-204-25 LCD module,
    am, cols#20, lines#4,
    clear=\376X, cnorm=\376J\376S, civis=\376T\376K,
    cub1=\376L, cuf1=\376M, cup=\376G%p2%{1}%+%c%p1%{1}%+%c,
    home=\376H,rs2=\376C\376Q\376S,

    Have a look at terminfo(5) and tic(1) for details. I don't know the
    appropriate commands for your Display, so I'm unable to setup a terminfo
    file for you.

    Sven

    --
    "linux is evolution, not intelligent design"
    (Linus Torvalds)

    /me is giggls@ircnet, http://sven.gegg.us/ on the Web

+ Reply to Thread