- Subject: Re: ascii table
- From: Goran Koruga <goran.koruga@xxxxxxxxx>
- Date: Tue, 21 Mar 2000 08:26:58 +0100
On Tue, Mar 21 2000, Konstantin Boldyshev wrote:
Hi,
this works for me:
---------------
#include <slang.h>
void main()
{
int i;
char b[32];
SLtt_get_terminfo();
SLang_init_tty(-1, 1, 0);
SLtt_cls();
SLtt_set_alt_char_set(1);
for (i = 128; i <= 160; i++)
{
SLtt_goto_rc(i - 127, 5);
sprintf(b, "%d ", i);
SLtt_write_string(b);
SLtt_putchar(i);
}
SLtt_flush_output();
sleep(3);
SLang_reset_tty();
}
---------------
Regards,
Goran
> Hello
>
> Can anyone help me with this simple program which
> intented to print ascii table. With curses it works fine
> (#define _CURSES_ in the beginnig of file),
> but I can't get it work with slang.
> Why chars >=128 <=160 are stripped?
>
> Any help will be usefull.
>
> Regards,
> Konstantin
>
--
Writing about music is like dancing about architecture.
-- Frank Zappa
[2000 date index]
[2000 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]