Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Verlässliche Systemsoftware
projects
osv
Commits
6b548713
Commit
6b548713
authored
11 years ago
by
Or Cohen
Browse files
Options
Downloads
Patches
Plain Diff
Added stty JNI call for ioctl flags needed by JLine
parent
32ff60e4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/jni/stty.c
+11
-0
11 additions, 0 deletions
java/jni/stty.c
with
11 additions
and
0 deletions
java/jni/stty.c
+
11
−
0
View file @
6b548713
...
...
@@ -51,6 +51,17 @@ Java_com_cloudius_util_Stty_raw
ioctl
(
0
,
TCSETS
,
&
t
);
}
JNIEXPORT
void
JNICALL
Java_com_cloudius_util_Stty_jlineMode
(
JNIEnv
*
env
,
jobject
self
)
{
struct
termios
t
;
ioctl
(
0
,
TCGETS
,
&
t
);
t
.
c_iflag
&=
~
(
INLCR
|
ICRNL
);
t
.
c_lflag
&=
~
(
ICANON
|
ECHO
);
ioctl
(
0
,
TCSETS
,
&
t
);
}
JNIEXPORT
void
JNICALL
Java_com_cloudius_util_Stty_reset
(
JNIEnv
*
env
,
jobject
self
,
jlong
addr
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment