Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cc-cli
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
Mirror
cc-cli
Commits
03661ed0
Commit
03661ed0
authored
14 years ago
by
Seblu
Browse files
Options
Downloads
Patches
Plain Diff
fix roxterm bad handling \0001 and \0002
parent
90ab166c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cccli/cli.py
+1
-1
1 addition, 1 deletion
cccli/cli.py
cccli/command.py
+2
-0
2 additions, 0 deletions
cccli/command.py
cccli/printer.py
+22
-21
22 additions, 21 deletions
cccli/printer.py
with
25 additions
and
22 deletions
cccli/cli.py
+
1
−
1
View file @
03661ed0
...
@@ -84,7 +84,7 @@ class Cli(object):
...
@@ -84,7 +84,7 @@ class Cli(object):
def
_parse
(
self
):
def
_parse
(
self
):
'''
Parse a line
'''
'''
Parse a line
'''
if
self
.
interactive
:
if
self
.
interactive
:
prompt
=
"
%s%s>%s
"
%
(
color
[
"
l
white
"
],
self
.
settings
[
"
login
"
],
color
[
"
reset
"
])
prompt
=
"
\001
%s
\002
%s>
\001
%s
\002
"
%
(
color
[
"
l
ight
"
],
self
.
settings
[
"
login
"
],
color
[
"
reset
"
])
else
:
else
:
prompt
=
""
prompt
=
""
while
True
:
while
True
:
...
...
This diff is collapsed.
Click to expand it.
cccli/command.py
+
2
−
0
View file @
03661ed0
...
@@ -176,6 +176,8 @@ class Command(object):
...
@@ -176,6 +176,8 @@ class Command(object):
objs
=
self
.
cli
.
rpc
.
list
(
str
.
join
(
""
,
argv
[
1
:]))
objs
=
self
.
cli
.
rpc
.
list
(
str
.
join
(
""
,
argv
[
1
:]))
except
RpcError
as
e
:
except
RpcError
as
e
:
raise
cmdError
(
"
RPCError: %s
"
%
str
(
e
))
raise
cmdError
(
"
RPCError: %s
"
%
str
(
e
))
if
len
(
objs
)
==
0
:
return
# get all tag list
# get all tag list
tags
=
dict
()
tags
=
dict
()
for
o
in
objs
:
for
o
in
objs
:
...
...
This diff is collapsed.
Click to expand it.
cccli/printer.py
+
22
−
21
View file @
03661ed0
...
@@ -14,30 +14,31 @@ from cccli.exception import *
...
@@ -14,30 +14,31 @@ from cccli.exception import *
color
=
{
color
=
{
# regular
# regular
"
red
"
:
"
\
001\
033
[0;31m
\002
"
,
"
red
"
:
"
\033
[0;31m
"
,
"
green
"
:
"
\
001\
033
[0;32m
\002
"
,
"
green
"
:
"
\033
[0;32m
"
,
"
yellow
"
:
"
\
001\
033
[0;33m
\002
"
,
"
yellow
"
:
"
\033
[0;33m
"
,
"
blue
"
:
"
\
001\
033
[0;34m
\002
"
,
"
blue
"
:
"
\033
[0;34m
"
,
"
purple
"
:
"
\
001\
033
[0;35m
\002
"
,
"
purple
"
:
"
\033
[0;35m
"
,
"
cyan
"
:
"
\
001\
033
[0;36m
\002
"
,
"
cyan
"
:
"
\033
[0;36m
"
,
"
white
"
:
"
\
001\
033
[0;37m
\002
"
,
"
white
"
:
"
\033
[0;37m
"
,
# lighted
# lighted
"
lred
"
:
"
\
001\
033
[1;31m
"
,
"
lred
"
:
"
\033
[1;31m
"
,
"
lgreen
"
:
"
\
001\
033
[1;32m
\002
"
,
"
lgreen
"
:
"
\033
[1;32m
"
,
"
lyellow
"
:
"
\
001\
033
[1;33m
\002
"
,
"
lyellow
"
:
"
\033
[1;33m
"
,
"
lblue
"
:
"
\
001\
033
[1;34m
\002
"
,
"
lblue
"
:
"
\033
[1;34m
"
,
"
lpurple
"
:
"
\
001\
033
[1;35m
\002
"
,
"
lpurple
"
:
"
\033
[1;35m
"
,
"
lcyan
"
:
"
\
001\
033
[1;36m
\002
"
,
"
lcyan
"
:
"
\033
[1;36m
"
,
"
lwhite
"
:
"
\
001\
033
[1;37m
\002
"
,
"
lwhite
"
:
"
\033
[1;37m
"
,
# underline
# underline
"
ured
"
:
"
\
001\
033
[4;31m
\002
"
,
"
ured
"
:
"
\033
[4;31m
"
,
"
ugreen
"
:
"
\
001\
033
[4;32m
\002
"
,
"
ugreen
"
:
"
\033
[4;32m
"
,
"
uyellow
"
:
"
\
001\
033
[4;33m
\002
"
,
"
uyellow
"
:
"
\033
[4;33m
"
,
"
ublue
"
:
"
\
001\
033
[4;34m
\002
"
,
"
ublue
"
:
"
\033
[4;34m
"
,
"
upurple
"
:
"
\
001\
033
[4;35m
\002
"
,
"
upurple
"
:
"
\033
[4;35m
"
,
"
ucyan
"
:
"
\
001\
033
[4;36m
\002
"
,
"
ucyan
"
:
"
\033
[4;36m
"
,
# others
# others
"
reset
"
:
"
\001\033
[m
\002
"
,
"
light
"
:
"
\033
[1m
"
,
"
reset
"
:
"
\033
[m
"
,
}
}
...
...
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