Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
3aec413b
Commit
3aec413b
authored
Apr 18, 2016
by
Andrey Jr. Melnikov
Committed by
Stéphane Graber
May 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch console pty to raw mode. Without this some ncurses-based programs behave incorrectly
Signed-off-by:
Andrey Jr. Melnikov
<
temnota.am@gmail.com
>
parent
02fdb536
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
console.c
src/lxc/console.c
+3
-2
No files found.
src/lxc/console.c
View file @
3aec413b
...
@@ -262,9 +262,10 @@ int lxc_setup_tios(int fd, struct termios *oldtios)
...
@@ -262,9 +262,10 @@ int lxc_setup_tios(int fd, struct termios *oldtios)
/* Remove the echo characters and signal reception, the echo
/* Remove the echo characters and signal reception, the echo
* will be done with master proxying */
* will be done with master proxying */
newtios
.
c_iflag
&=
~
IGNBRK
;
newtios
.
c_iflag
&=
~
(
IGNBRK
|
ISTRIP
|
INLCR
|
IGNCR
|
ICRNL
|
IXON
|
IXANY
|
IXOFF
)
;
newtios
.
c_iflag
&=
BRKINT
;
newtios
.
c_iflag
&=
BRKINT
;
newtios
.
c_lflag
&=
~
(
ECHO
|
ICANON
|
ISIG
);
newtios
.
c_lflag
&=
~
(
ECHO
|
ICANON
|
ISIG
|
IEXTEN
|
ECHOE
|
ECHOK
|
ECHONL
);
newtios
.
c_oflag
&=
~
OPOST
;
newtios
.
c_cc
[
VMIN
]
=
1
;
newtios
.
c_cc
[
VMIN
]
=
1
;
newtios
.
c_cc
[
VTIME
]
=
0
;
newtios
.
c_cc
[
VTIME
]
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment