about summary refs log tree commit diff
path: root/src/init.go
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-02-23 16:39:36 +0100
committerEmile <hanemile@protonmail.com>2020-02-23 16:39:36 +0100
commit4fc5cb4c6d6296c96e4ecb0aad7816ae78000553 (patch)
treee7cf88a79d824118ee24a21a09300a7364dbe37d /src/init.go
parentb25e599b6dc64c84db86be1a9f4b31ef003e8eaa (diff)
radare theming + logrus
Diffstat (limited to 'src/init.go')
-rw-r--r--src/init.go17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/init.go b/src/init.go
index f8bfb74..4b3f2d9 100644
--- a/src/init.go
+++ b/src/init.go
@@ -62,18 +62,29 @@ func initArena(config *Config) *r2pipe.Pipe {
 	_ = r2cmd(r2p, fmt.Sprintf("e asm.bits = %d", config.Bits))
 
 	// enable colors
-	_ = r2cmd(r2p, "e scr.color = true")
+	// _ = r2cmd(r2p, "e scr.color = 0")
+	_ = r2cmd(r2p, "e scr.color = 3")
+	_ = r2cmd(r2p, "e scr.color.args = true")
+	_ = r2cmd(r2p, "e scr.color.bytes = true")
+	_ = r2cmd(r2p, "e scr.color.grep = true")
+	_ = r2cmd(r2p, "e scr.color.ops = true")
+	_ = r2cmd(r2p, "e scr.bgfill = true")
+	_ = r2cmd(r2p, "e scr.color.pipe = true")
+	_ = r2cmd(r2p, "e scr.utf8 = true")
+
+	// hex column width
+	_ = r2cmd(r2p, "e hex.cols = 32")
 
-	log.Println("[+] Initializing the ESIL VM")
 	// initialize ESIL VM state
+	logrus.Debug("Initializing the ESIL VM")
 	_ = r2cmd(r2p, "aei")
 
 	// initialize ESIL VM stack
+	logrus.Debug("Initializing the ESIL Stack")
 	_ = r2cmd(r2p, "aeim")
 
 	// return the pipe
 	return r2p
-
 }
 
 // getRandomOffsets returns random offsets for all bots