~kris/9p

disco

0e577532625bfb5bab9215592bc576aa616ffb6b — Sean Hinchee 9 years ago 273bdcb
raw password entry working on plan9
1 files changed, 3 insertions(+), 5 deletions(-)

M config.go
M config.go => config.go +3 -5
@@ 78,8 78,7 @@ func CreateConfig() {
	password := "";
	
	if plan9 {
		rawon := make([]byte, 5)
		rawon = []byte("rawon")
		rawon := []byte("rawon")
		_, err = consctl.Write(rawon)
		if err != nil {
			fmt.Println("Failed to set rawon")


@@ 92,15 91,14 @@ func CreateConfig() {
			consScan.Scan()
			password = consScan.Text()
			
			
			rawoff := make([]byte, 6)
			rawoff = []byte("rawoff")
			rawoff := []byte("rawoff")
			_, err = consctl.Write(rawoff)
			if err != nil {
				fmt.Println("Failed to set rawoff")
			}
		}
	} else {
		/* Maybe put linux terminal raw mode in here one day */
		fmt.Println("Skipping raw input for Plan 9")
	}