#include <stdio.h>
#include "onew.h"

OM_mode_switches(){
	int com;

	ONEW_getch_asis = 1;
	if( Onew_inready(stdin,400*1000) == 0 )
		Onew_putmode(ONEW_mode_modeswitch,ONEW_menu_modeswitch);
	com = ONEW_getch0(ONEW_getch_asis);
	ONEW_getch_asis = 0;

	Onew_putmode(romkan_cmode(),NULL);
ouiTrace("JV:OM_mode_sw.com","('%c')",com);
	switch(com){
		case '#': break;
		case 'a':
			OM_JisyoGetYomi = 1;
			enq_keyinQ(ONEW_HENKAN_START);
			break;

		case 'k': katakana_toggle(); break;
		case 'n': ONEW_NN_THRU = !ONEW_NN_THRU; break;
		case 'q':
/* ???			ungetc(0,stdin);
			/* romkan_toggle(); */
			break;

		case '=': OM_set_thruchar(); break;
		case '-': sym_thru_toggle(); break;

		case 'c': /* canna */ break;
		case 'w': /* wnn */ break;
		case 'r': switch_rkserv(); break;
		case 's': switch_kkserv(); break;

		case ' ':
			enq_keyinQ(ONEW_HENKAN_START);
			break;
	}
}


syntax highlighted by Code2HTML, v. 0.9.1