FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
git2cpp/src/utils/ansi_code.cpp at 0.0.12 · QuantStack/git2cpp · GitHub
QuantStack
git2cpp
Repository navigation
Code
Issues
6
(6)
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
git2cpp
/
src
/
utils
/
ansi_code.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (20 loc) · 429 Bytes
Breadcrumbs
git2cpp
/
src
/
utils
/
ansi_code.cpp
Copy path
File metadata and controls
24 lines (20 loc) · 429 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
include
"
ansi_code.hpp
"
namespace
ansi_code
{
std::string
cursor_to_row
(
size_t
row)
{
return
"
\e[
"
+
std::to_string
(row) +
"
H
"
;
}
bool
is_down_arrow
(std::string str)
{
return
str ==
"
\e[B
"
|| str ==
"
\e[1B]
"
;
}
bool
is_escape_char
(
char
ch)
{
return
ch ==
'
\e
'
;
}
bool
is_up_arrow
(std::string str)
{
return
str ==
"
\e[A
"
|| str ==
"
\e[1A]
"
;
}
}
Back
|
FazBrowse Home
|
New Git URL