Changeset 25403
- Timestamp:
- 05/09/08 15:37:45 (3 days ago)
- Files:
-
- haiku/trunk/src/apps/terminal/Shell.cpp (modified) (2 diffs)
- haiku/trunk/src/apps/terminal/Shell.h (modified) (1 diff)
- haiku/trunk/src/apps/terminal/TermView.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
haiku/trunk/src/apps/terminal/Shell.cpp
r25386 r25403 195 195 winSize.ws_row = rows; 196 196 winSize.ws_col = columns; 197 #ifdef __HAIKU__ 198 if (ioctl(fFd, TIOCSWINSZ, &winSize) != 0) 199 return errno; 200 return B_OK; 201 #else 197 202 ioctl(fFd, TIOCSWINSZ, &winSize); 198 203 return Signal(SIGWINCH); 199 } 200 201 204 #endif 205 } 206 207 208 #ifndef __HAIKU__ 202 209 status_t 203 210 Shell::Signal(int signal) … … 205 212 return send_signal(-fProcessID, signal); 206 213 } 214 #endif 207 215 208 216 haiku/trunk/src/apps/terminal/Shell.h
r22100 r25403 33 33 34 34 status_t UpdateWindowSize(int row, int columns); 35 #ifndef __HAIKU__ 35 36 status_t Signal(int signal); 37 #endif 36 38 37 39 status_t GetAttr(struct termios &attr); haiku/trunk/src/apps/terminal/TermView.cpp
r25392 r25403 1472 1472 currentMessage->FindInt32("raw_char", &rawChar); 1473 1473 1474 #ifndef __HAIKU__ 1474 1475 // If bytes[0] equal intr character, 1475 1476 // send signal to shell process group. … … 1480 1481 fShell->Signal(SIGINT); 1481 1482 } 1483 #endif 1482 1484 1483 1485 // Terminal filters RET, ENTER, F1...F12, and ARROW key code.
