Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ stty_ld(7) — mips UMIPS RISC/os 5.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

termio(7)

wchrtbl(1M)

eucset(1)

getwidth(3W)

euc(4)

tty(4-BSD)



STTYLD(7)          RISC/os Reference Manual           STTYLD(7)



NAME
     stty_ld - line discipline streams module

DESCRIPTION (International Functionality)
     sttyld allows input and output of EUC (i.e. supplementary
     code sets).  Editing of EUC code input lines is possible in
     cooked (see tty(4-BSD)) mode.

     There are STREAMS ioctl calls for setting and getting the
     code width and screen width of EUC code.

USAGE
     #include <termio.h>
     #include <sys/ioctl.h>
     #include <stropts.h>
     #include <sys/eucioctl.h>

     struct strioctl sb;
     struct eucioc eb;

     /* setting code width and screen width */
     eb.eucw[1] = code width of code set 1;
     eb.scrw[1] = screen width of code set 1;
     sb.ic_cmd = EUC_WSET;
     sb.ic_timeout = 0;
     sb.ic_len = sizeof(struct eucioc);
     sb.ic_dp = (char *)&eb;
     ioctl(fd, I_STR, &sb);

     /* getting code width and screen width */
     sb.ic_cmd = EUC_WGET;
     sb.ic_timeout = 0;
     sb.ic_len = sizeof(struct eucioc);
     sb.ic_dp = (char *)&eb;
     ioctl(fd, I_STR, &sb);
     code width of code set 1= eb.eucw[1];
     screen width of code set 1= eb.scrw[1];

WARNING
     For code set 1, EUC code and screen widths both default to
     1.  For code sets 2 and 3, EUC code and screen widths
     default to 0.

     For code set 1, EUC code width must be greater than 0. If
     code width is erroneously attempted to be set to 0, the
     module will use the default value of 1.

     All screen widths must be less than 5. All code widths must
     be less than 6. Larger values may cause abnormal screen
     display after erase (backspace) processing.





                        Printed 11/19/92                   Page 1





STTYLD(7)          RISC/os Reference Manual           STTYLD(7)



SEE ALSO
     termio(7), wchrtbl(1M).
     eucset(1) in the RISC/os User's Reference Manual.
     getwidth(3W), euc(4), tty(4-BSD) in the RISC/os Programmer's
     Reference Manual.


















































 Page 2                 Printed 11/19/92



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026