#include "onew.h" /* * CONTROL ROMKAN THROUGH SYMBOLS */ static char *ONEW_THRUSYMS = "[ -,.-@\\^-`{-~]"; static char ONEW_THRUSYMA[256]; /* THRUSYMS mapped to the array */ Onew_THRUSYMS(syms) { strMAPset(syms,ONEW_THRUSYMA,"ONEW_THRUSYMS", ONEW_THRUSYMS,&ONEW_THRUSYMS_ON); } Onew_isTHRU(sym) { return ONEW_THRUSYMA[sym]; } static char *list_thrusyms(syms) char *syms; { char *strMAPget(); return strMAPget(syms,ONEW_THRUSYMA); } OM_set_thruchar(){ int kc,on; char syms[256]; /* if( !ready_keyinQ() ){ Onew_putmode(romkan_cmode(), */ Onew_putmsg_sys(1, "%s", ONEW_THRUSYMS_ON?ONEW_menu_thruOFF:ONEW_menu_thruON); /* } */ /* kc = Onew_asis_romkan_next(); */ kc = OnewThruGetchar(); Onew_disp_kanahalf(' '); if( kc == ONEW_THRUSYMS_SETUP || kc == JVIM_HENKAN) sym_thru_toggle(); else{ for(;;){ if( kc == ESC_CH || kc == '\r' || kc == '\n' ) break; if( kc == ONEW_THRUSYMS_SETUP || kc == JVIM_HENKAN){ sym_thru_toggle(); break; } on = ONEW_THRUSYMA[kc] = !ONEW_THRUSYMA[kc]; Onew_putmsg_sys(1,ONEW_menu_thruSET, 0x20 <= kc?kc:' ', on?"ON":"OFF",list_thrusyms(syms)); /* kc = Onew_asis_romkan_next(); */ kc = OnewThruGetchar(); } } }