Changeset 0bf84cc in mainline for fb/sysio.c
- Timestamp:
- 2006-06-02T22:58:02Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 27386e6a
- Parents:
- 59ed572
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fb/sysio.c
r59ed572 r0bf84cc 69 69 } 70 70 71 static void set_style(int mode) 72 { 73 char control[20]; 74 75 snprintf(control, 20, "\033[%df", mode); 76 sysputs(control); 77 } 78 71 79 /** ANSI terminal emulation main thread */ 72 80 static void sysio_client_connection(ipc_callid_t iid, ipc_call_t *icall) … … 79 87 int lastrow=0; 80 88 int newcol,newrow; 89 int fgcolor,bgcolor; 81 90 82 91 if (client_connected) { … … 116 125 retval = 0; 117 126 break; 127 case FB_SET_STYLE: 128 fgcolor = IPC_GET_ARG1(call); 129 bgcolor = IPC_GET_ARG2(call); 130 if (fgcolor > bgcolor) 131 set_style(0); 132 else 133 set_style(7); 134 retval = 0; 135 break; 118 136 default: 119 137 retval = ENOENT;
Note:
See TracChangeset
for help on using the changeset viewer.