Ticket #7329: terminal.diff
File terminal.diff, 3.2 KB (added by , 14 years ago) |
---|
-
src/apps/terminal/Shell.cpp
412 412 const char *ttyName; 413 413 414 414 if (master < 0) { 415 fprintf(stderr, B_TRANSLATE("Didn't find any available pseudo ttys."));415 fprintf(stderr, "Didn't find any available pseudo ttys."); 416 416 return errno; 417 417 } 418 418 419 419 if (grantpt(master) != 0 || unlockpt(master) != 0 420 420 || (ttyName = ptsname(master)) == NULL) { 421 421 close(master); 422 fprintf(stderr, B_TRANSLATE("Failed to init pseudo tty."));422 fprintf(stderr, "Failed to init pseudo tty."); 423 423 return errno; 424 424 } 425 425 … … 454 454 if (setsid() < 0) { 455 455 handshake.status = PTY_NG; 456 456 snprintf(handshake.msg, sizeof(handshake.msg), 457 B_TRANSLATE("could not set session leader."));457 "could not set session leader."); 458 458 send_handshake_message(terminalThread, handshake); 459 459 exit(1); 460 460 } … … 464 464 if ((slave = open(ttyName, O_RDWR)) < 0) { 465 465 handshake.status = PTY_NG; 466 466 snprintf(handshake.msg, sizeof(handshake.msg), 467 B_TRANSLATE("can't open tty (%s)."), ttyName);467 "can't open tty (%s).", ttyName); 468 468 send_handshake_message(terminalThread, handshake); 469 469 exit(1); 470 470 } … … 503 503 if (tcsetattr(0, TCSANOW, &tio) == -1) { 504 504 handshake.status = PTY_NG; 505 505 snprintf(handshake.msg, sizeof(handshake.msg), 506 B_TRANSLATE("failed set terminal interface (TERMIOS)."));506 "failed set terminal interface (TERMIOS)."); 507 507 send_handshake_message(terminalThread, handshake); 508 508 exit(1); 509 509 } … … 519 519 if (handshake.status != PTY_WS) { 520 520 handshake.status = PTY_NG; 521 521 snprintf(handshake.msg, sizeof(handshake.msg), 522 B_TRANSLATE("mismatch handshake."));522 "mismatch handshake."); 523 523 send_handshake_message(terminalThread, handshake); 524 524 exit(1); 525 525 } -
src/apps/terminal/TermView.cpp
2195 2195 cdItem->SetEnabled(false); 2196 2196 2197 2197 BPopUpMenu *menu = new BPopUpMenu( 2198 B_TRANSLATE("Secondary mouse button drop menu"));2198 "Secondary mouse button drop menu"); 2199 2199 menu->SetAsyncAutoDestruct(true); 2200 2200 menu->AddItem(insertItem); 2201 2201 menu->AddSeparatorItem(); -
src/apps/terminal/TermApp.cpp
88 88 #endif 89 89 action.sa_userdata = this; 90 90 if (sigaction(SIGCHLD, &action, NULL) < 0) { 91 fprintf(stderr, B_TRANSLATE("sigaction() failed: %s\n"),91 fprintf(stderr, "sigaction() failed: %s\n", 92 92 strerror(errno)); 93 93 // continue anyway 94 94 } -
src/apps/terminal/PrefHandler.cpp
256 256 sscanf(s, "%d, %d, %d", &r, &g, &b); 257 257 } else { 258 258 fprintf(stderr, 259 B_TRANSLATE("PrefHandler::getRGB(%s) - key not found\n"), key);259 "PrefHandler::getRGB(%s) - key not found\n", key); 260 260 r = g = b = 0; 261 261 } 262 262