Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
termion
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
redox-os
termion
Commits
557f7a4e
Commit
557f7a4e
authored
2 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into 'master'
Annotate the tuple returned by terminal_size() See merge request
!179
parents
8054e082
d6f42c9d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!179
Annotate the tuple returned by terminal_size()
Pipeline
#10698
failed
2 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sys/unix/size.rs
+1
-1
1 addition, 1 deletion
src/sys/unix/size.rs
with
1 addition
and
1 deletion
src/sys/unix/size.rs
+
1
−
1
View file @
557f7a4e
...
...
@@ -10,7 +10,7 @@ struct TermSize {
x
:
c_ushort
,
y
:
c_ushort
,
}
/// Get the size of the terminal.
/// Get the size
(columns, rows)
of the terminal.
pub
fn
terminal_size
()
->
io
::
Result
<
(
u16
,
u16
)
>
{
unsafe
{
let
mut
size
:
TermSize
=
mem
::
zeroed
();
...
...
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