Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
93d887e4
"git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "069186fac510d6f6f88a5e435523b235c823a8a0"
Commit
93d887e4
authored
Sep 25, 2023
by
Michael Yang
Browse files
add painter message for exit
parent
7de0c834
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
cmd/cmd.go
cmd/cmd.go
+1
-1
No files found.
cmd/cmd.go
View file @
93d887e4
...
@@ -43,7 +43,7 @@ func (p Painter) Paint(line []rune, _ int) []rune {
...
@@ -43,7 +43,7 @@ func (p Painter) Paint(line []rune, _ int) []rune {
if
p
.
IsMultiLine
{
if
p
.
IsMultiLine
{
prompt
=
"Use
\"\"\"
to end multi-line input"
prompt
=
"Use
\"\"\"
to end multi-line input"
}
else
{
}
else
{
prompt
=
"Send a message (/? for help)"
prompt
=
"Send a message (/? for help
, /bye to exit
)"
}
}
return
[]
rune
(
fmt
.
Sprintf
(
"
\0
33[38;5;245m%s
\0
33[%dD
\0
33[0m"
,
prompt
,
len
(
prompt
)))
return
[]
rune
(
fmt
.
Sprintf
(
"
\0
33[38;5;245m%s
\0
33[%dD
\0
33[0m"
,
prompt
,
len
(
prompt
)))
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment