Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Software for White Rabbit PTP Core
Manage
Activity
Members
Labels
Plan
Issues
35
Issue boards
Milestones
Wiki
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Projects
Software for White Rabbit PTP Core
Commits
f6a5e5b5
Commit
f6a5e5b5
authored
11 years ago
by
Grzegorz Daniluk
Browse files
Options
Downloads
Patches
Plain Diff
fix colors so that they don't break the terminal
parent
c9ff8b07
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/util.c
+2
-0
2 additions, 0 deletions
lib/util.c
with
2 additions
and
0 deletions
lib/util.c
+
2
−
0
View file @
f6a5e5b5
...
...
@@ -85,6 +85,7 @@ void cprintf(int color, const char *fmt, ...)
va_start
(
ap
,
fmt
);
vprintf
(
fmt
,
ap
);
va_end
(
ap
);
mprintf
(
"\e[m"
);
}
void
pcprintf
(
int
row
,
int
col
,
int
color
,
const
char
*
fmt
,
...)
...
...
@@ -95,6 +96,7 @@ void pcprintf(int row, int col, int color, const char *fmt, ...)
va_start
(
ap
,
fmt
);
vprintf
(
fmt
,
ap
);
va_end
(
ap
);
mprintf
(
"\e[m"
);
}
void
term_clear
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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