Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
3588c4a9
Commit
3588c4a9
authored
Nov 16, 2014
by
Taylor Gerring
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
formatting update per gofmt
parent
71b338e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
repl_windows.go
cmd/ethereum/repl/repl_windows.go
+7
-7
No files found.
cmd/ethereum/repl/repl_windows.go
View file @
3588c4a9
...
@@ -32,7 +32,7 @@ func (self *JSRepl) read() {
...
@@ -32,7 +32,7 @@ func (self *JSRepl) read() {
if
err
!=
nil
{
if
err
!=
nil
{
fmt
.
Println
(
"Error reading input"
,
err
)
fmt
.
Println
(
"Error reading input"
,
err
)
}
else
{
}
else
{
if
(
string
(
str
)
==
"exit"
)
{
if
string
(
str
)
==
"exit"
{
self
.
Stop
()
self
.
Stop
()
break
break
}
else
{
}
else
{
...
@@ -46,25 +46,25 @@ func addHistory(s string) {
...
@@ -46,25 +46,25 @@ func addHistory(s string) {
}
}
func
printColored
(
outputVal
string
)
{
func
printColored
(
outputVal
string
)
{
for
;
outputVal
!=
""
;
{
for
outputVal
!=
""
{
codePart
:=
""
codePart
:=
""
if
(
strings
.
HasPrefix
(
outputVal
,
"
\0
33[32m"
)
)
{
if
strings
.
HasPrefix
(
outputVal
,
"
\0
33[32m"
)
{
codePart
=
"
\0
33[32m"
codePart
=
"
\0
33[32m"
changeColor
(
2
)
changeColor
(
2
)
}
}
if
(
strings
.
HasPrefix
(
outputVal
,
"
\0
33[1m
\0
33[30m"
)
)
{
if
strings
.
HasPrefix
(
outputVal
,
"
\0
33[1m
\0
33[30m"
)
{
codePart
=
"
\0
33[1m
\0
33[30m"
codePart
=
"
\0
33[1m
\0
33[30m"
changeColor
(
8
)
changeColor
(
8
)
}
}
if
(
strings
.
HasPrefix
(
outputVal
,
"
\0
33[31m"
)
)
{
if
strings
.
HasPrefix
(
outputVal
,
"
\0
33[31m"
)
{
codePart
=
"
\0
33[31m"
codePart
=
"
\0
33[31m"
changeColor
(
red
)
changeColor
(
red
)
}
}
if
(
strings
.
HasPrefix
(
outputVal
,
"
\0
33[35m"
)
)
{
if
strings
.
HasPrefix
(
outputVal
,
"
\0
33[35m"
)
{
codePart
=
"
\0
33[35m"
codePart
=
"
\0
33[35m"
changeColor
(
5
)
changeColor
(
5
)
}
}
if
(
strings
.
HasPrefix
(
outputVal
,
"
\0
33[0m"
)
)
{
if
strings
.
HasPrefix
(
outputVal
,
"
\0
33[0m"
)
{
codePart
=
"
\0
33[0m"
codePart
=
"
\0
33[0m"
resetColorful
()
resetColorful
()
}
}
...
...
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