Modifications to NCSA Telnet 2.3 ================================ - support for national chars - printer redirection - bug fixes By Roland Mansson, Lund University Computing Center, Sweden roland_m@ldc.lu.se public domain 89-12-13 (use tabwidth to 8) ******** * main * ******** event.c ------- doKeys: translate from 8 bit chars to 7 bit chars cleaned up and fixed command and option handling (bug fix) sendmacro: translate from national to US maclook.c --------- main: call trInit to initialize national char routines turn off national chars for console window putstr: now saves old VSIw and VSIwn and restore them before exit (bug fix) putln: same as in putstr addport: sets national chars on or off according to Prefs.national initconsole: changed position and scrollback for console window maclook.make ------------ added lines for translate.c please ignore other changes menu.c ------ added #includes for and added #define EMnational (and renumbered others) docommand: changed GetWTitle to GETWTITLE (bug fix) added switch-case for EMnational applAbout: added check for exsistence of DITL (bug fix) changeport: added code for national chars printPages: added #defines for ascii codes made title (and page #) optional prints either text from handle or file uses entire printable area leaves space for perforator in left margin minor bug fixes printText: modified printPages call (new parameters etc) AdjustMenus: added code for National Chars menu item ncsa.rsrc.r ----------- DITL 15105 added checkbox for national chars (Preferences dialog) DLOG 700 made dialog box somewhat larger (Preferences dialog) DLOG 256 centered window (About dialog) MENU 258 added National Chars item (Session menu without command keys) MENU 514 same as in MENU 258 (Session menu with command keys) TRSL 256 unused tranlation table (1:1 mapping, copy and modify!) TRSL 257 US 8-bit -> US 7-bit translation table TRSL 258 US -> National translation table TRSL 259 National -> US translation table vers 1&2 Changed NCSA to NCSA/LU netevent.c ---------- pasteText: translate to national chars prefs.c ------- added #define for PrefNational PromptPrefs: added variables and code to take care of National Chars checkbox prefs.h ------- increased PREF_Version to 5 added short national to struct NCSAPrefs modified NCSAPrefs and PrefLength telnet.make & telnet.ncsa.make ------------------------------ changed NCSA to NCSA/LU added rule for translate.c please ignore other changes translate.c (new file) ---------------------- trInit: loads and initializes character translation tables get_trsl: gets and checks resources setup_def_table:creates table with no mapping (used if resource not found) tr8to7: converts a char from 8-bit to 7-bit tr7to8: converts a char from 7-bit to 8-bit trbuf8to7: same as tr8to7, but for a string trbuf7to8: same as tr7to8, but for a string transBuffer: translates vslin->text to or from national chars ****** * vs * ****** vsdata.h -------- added #include for added several fields to struct VSscrn vsem.c ------ added #include for , & added extern prRecHdl, theWorld & *normcurs; VSprON: new, called at start of printer redirection, opens temp file etc VSprOFF: new, called at end of printer redirection, prints, cleans up etc VSpr: new, called from VSem when printer redirection is active VSem: added code for printer redirection translate to national chars added check for start of printer redirection vsinterf.c ---------- VSnewscreen: initialize VSIw->prredirect, VSIw->prbuf & VSIw->refNum vsintern.c ---------- added #include for added extern theWorld VSIreset: added code to stop printer redirection wind.h ------ added int national to struct WindRec ********* * tcpip * ********* tcplibd.make ------------ changed {MPW}CLibraries to {CLibraries} (bug fix)