aboutsummaryrefslogtreecommitdiffstats
path: root/ui.go
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2023-07-29 11:28:37 -0230
committerSam Anthony <sam@samanthony.xyz>2023-07-29 11:28:37 -0230
commit39d02975dc58830471ca86702e07533a43fc6424 (patch)
tree2e9b77f7e34c841f8b8825455c982f5000ae8dc6 /ui.go
parent008e4021375883610cf1b07e005a4176acadc0de (diff)
downloadpfc-39d02975dc58830471ca86702e07533a43fc6424.zip
radian/degree mode toggle command
Diffstat (limited to 'ui.go')
-rw-r--r--ui.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui.go b/ui.go
index 877f11b..1360bcd 100644
--- a/ui.go
+++ b/ui.go
@@ -44,6 +44,8 @@ func (ui UI) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case "C":
ui.calc.buf = ""
ui.calc.stack = ui.calc.stack[:0]
+ case "A":
+ ui.calc.anglem = !ui.calc.anglem
case "N":
ui.calc.negate()
case "+", "-", "*", "/", "%", "^":