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
cb730f01
Commit
cb730f01
authored
Apr 18, 2016
by
Christian Brauner
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #981 from LynxChaus/master
Switch console pty to raw mode.
parents
85145234
d3893399
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 @
cb730f01
...
@@ -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