Can't enable Raw Mode on MacOS/iTerms terminals #194
-
I'm trying to build a text editor using Mordant, but everytime I try to enter raw mode the app stops showing anything except for the cursor when used in iTerm. Code:
I ran the application, types "hey". this is what the application displays Until I press Ctrl-C, it just quits the app without printing anything in. iTerm logs: 1722364211.186767 iTermApplication.m:238 (-[iTermApplication eventByRemappingForSecureInput:]): May need remapping because secure input is on or event tap not running
1722364214.703114 iTermSecureKeyboardEntryController.m:147 (-[iTermSecureKeyboardEntryController currentSessionAtPasswordPrompt]): Current session at password prompt=1
1722364214.703117 iTermSecureKeyboardEntryController.m:160 (-[iTermSecureKeyboardEntryController update]): Update secure keyboard entry. desired=1 active=1 focusStolen=0
1722364214.703119 iTermSecureKeyboardEntryController.m:147 (-[iTermSecureKeyboardEntryController currentSessionAtPasswordPrompt]): Current session at password prompt=1
1722364214.703122 iTermSecureKeyboardEntryController.m:173 (-[iTermSecureKeyboardEntryController update]): Before: IsSecureEventInputEnabled returns 0
1722364214.703124 iTermSecureKeyboardEntryController.m:147 (-[iTermSecureKeyboardEntryController currentSessionAtPasswordPrompt]): Current session at password prompt=1
1722364214.704969 iTermSecureKeyboardEntryController.m:179 (-[iTermSecureKeyboardEntryController update]): EnableSecureEventInput err=0
1722364214.704975 iTermSecureKeyboardEntryController.m:183 (-[iTermSecureKeyboardEntryController update]): Secure keyboard entry enabled
1722364214.704986 iTermSecureKeyboardEntryController.m:197 (-[iTermSecureKeyboardEntryController update]): After: IsSecureEventInputEnabled returns 1
1722364222.944341 iTermApplication.m:238 (-[iTermApplication eventByRemappingForSecureInput:]): May need remapping because secure input is on or event tap not running
1722364224.345212 iTermApplication.m:238 (-[iTermApplication eventByRemappingForSecureInput:]): May need remapping because secure input is on or event tap not running
1722364224.570994 iTermApplication.m:238 (-[iTermApplication eventByRemappingForSecureInput:]): May need remapping because secure input is on or event tap not running
1722364229.320348 iTermApplication.m:238 (-[iTermApplication eventByRemappingForSecureInput:]): May need remapping because secure input is on or event tap not running
1722364233.446870 iTermApplication.m:238 (-[iTermApplication eventByRemappingForSecureInput:]): May need remapping because secure input is on or event tap not running
1722364233.557753 iTermApplication.m:238 (-[iTermApplication eventByRemappingForSecureInput:]): May need remapping because secure input is on or event tap not running
1722364233.739911 iTermApplication.m:238 (-[iTermApplication eventByRemappingForSecureInput:]): May need remapping because secure input is on or event tap not running
1722364233.988894 iTermSecureKeyboardEntryController.m:147 (-[iTermSecureKeyboardEntryController currentSessionAtPasswordPrompt]): Current session at password prompt=0
1722364233.988901 iTermSecureKeyboardEntryController.m:160 (-[iTermSecureKeyboardEntryController update]): Update secure keyboard entry. desired=0 active=1 focusStolen=0
1722364233.988906 iTermSecureKeyboardEntryController.m:147 (-[iTermSecureKeyboardEntryController currentSessionAtPasswordPrompt]): Current session at password prompt=0
1722364233.988912 iTermSecureKeyboardEntryController.m:173 (-[iTermSecureKeyboardEntryController update]): Before: IsSecureEventInputEnabled returns 1
1722364233.991568 iTermSecureKeyboardEntryController.m:188 (-[iTermSecureKeyboardEntryController update]): DisableSecureEventInput err=0
1722364233.991574 iTermSecureKeyboardEntryController.m:192 (-[iTermSecureKeyboardEntryController update]): Secure keyboard entry disabled
1722364233.991588 iTermSecureKeyboardEntryController.m:197 (-[iTermSecureKeyboardEntryController update]): After: IsSecureEventInputEnabled returns 0
1722364237.876305 iTermSecureKeyboardEntryController.m:147 (-[iTermSecureKeyboardEntryController currentSessionAtPasswordPrompt]): Current session at password prompt=0 Am I doing something wrong? is there some way to enable raw mode on Mac? P.s: appreciate the library, I've been looking for something like this for a while :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Are you on the latest 2.7.2? That release should have fixed raw mode on macos. |
Beta Was this translation helpful? Give feedback.
Are you on the latest 2.7.2? That release should have fixed raw mode on macos.