projects
/
selector.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1fc80b
)
Cosmetics.
author
Francois Fleuret
<francois@fleuret.org>
Tue, 26 May 2009 16:59:39 +0000
(18:59 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Tue, 26 May 2009 16:59:39 +0000
(18:59 +0200)
selector.cc
patch
|
blob
|
history
diff --git
a/selector.cc
b/selector.cc
index
0f47dfa
..
a6d3d7e
100644
(file)
--- a/
selector.cc
+++ b/
selector.cc
@@
-70,9
+70,9
@@
void inject_into_tty_buffer(char *string) {
memset(&newtio, 0, sizeof(newtio));
// Set input mode (non-canonical, *no echo*,...)
tcsetattr(STDIN_FILENO, TCSANOW, &newtio);
- char control_q = '\021';
+ c
onst c
har control_q = '\021';
// Put the selected string in the tty input buffer
- for(char *k = string; *k; k++) {
+ for(c
onst c
har *k = string; *k; k++) {
if(add_control_qs) {
// Add ^Q to quote control characters
ioctl(STDIN_FILENO, TIOCSTI, &control_q);