Sample Header Ad - 728x90

Ask Different (Apple)

Q&A for power users of Apple hardware and software

Latest Questions

4 votes
1 answers
4817 views
Separate keyboard layout for each window in macOS Monterey
Is there a way to set up keyboard layouts preferences to have a **separate layout for each window**? **Use case described step by step:** - I use **two keyboard layouts**: English and non-English one. - I often open Terminal, where I use English layout. - And I often chat in another app using my nat...
Is there a way to set up keyboard layouts preferences to have a **separate layout for each window**? **Use case described step by step:** - I use **two keyboard layouts**: English and non-English one. - I often open Terminal, where I use English layout. - And I often chat in another app using my native language. - I am tired of switching **global keyboard layout** back and forth. - I would like **macOS to remember**, which layout was **last-used in each window**. Especially interesting, if it is possible to do with **native tools** or settings in Monterey rather than 3rd party app. Just like it is possible to do in Linux with a single click in Input methods settings. PS: there is the same question here , but the **answer is outdated**. There is no such setting anymore. At least **in Monterey**.
Evgenii Frolov (61 rep)
Nov 14, 2021, 12:33 PM • Last activity: Aug 2, 2025, 08:10 PM
10 votes
6 answers
8079 views
How to enter a non-breaking space on iOS?
On a Mac, entering a [non-breaking space][1] is very easy: ⌥ + SPACE . On my iPad with iOS 7 installed, I want to enter a non-breaking space. But I find no way. I have tried the mic on the keyboard. It gives me this : `Espace insécable` :-) I would prefer a solution coming from the keyboard. I...
On a Mac, entering a non-breaking space is very easy: ⌥ + SPACE. On my iPad with iOS 7 installed, I want to enter a non-breaking space. But I find no way. I have tried the mic on the keyboard. It gives me this : Espace insécable :-) I would prefer a solution coming from the keyboard. I would also like a palette offering characters or snippets.
TheMaskedCucumber (2440 rep)
Jan 31, 2015, 05:52 AM • Last activity: Jul 17, 2025, 01:20 AM
0 votes
1 answers
208 views
How to navigate the Special Characters window with the keyboard?
Is it possible to use the special characters window only with the keyboard? i.e., I know in `textedit` for example you can activat the special characters window with Alt+Cmd+T. But: * How do you bring focus to this window with the keyboard? * How do you perform a search only with the keyboard? * How...
Is it possible to use the special characters window only with the keyboard? i.e., I know in textedit for example you can activat the special characters window with Alt+Cmd+T. But: * How do you bring focus to this window with the keyboard? * How do you perform a search only with the keyboard? * How do you select a symbol from the list using the keyboard?
Jeromy Anglim (2128 rep)
Nov 15, 2012, 03:41 AM • Last activity: Jul 2, 2025, 04:03 PM
0 votes
2 answers
1368 views
Make backslash \ in terminal (Danish keyboard)
I am using a Danish keyboard language and Danish keyboard layout. When typing in my browser or other applications on my computer, I can make a backslash. In my case I use the combination shift + option + /. However, when I enter the terminal (either through VSC or directly from my computer), I can't...
I am using a Danish keyboard language and Danish keyboard layout. When typing in my browser or other applications on my computer, I can make a backslash. In my case I use the combination shift + option + /. However, when I enter the terminal (either through VSC or directly from my computer), I can't make backslash through the key combination. Nothing happens. I am using bash. I have also tried the Z shell instead, but I can't make backslash there as well. For similar characters I can use their key combinations without any problems in the bash terminal. E.g. shift + option + ( makes an opening curly bracket '{'. Thus, the key combination for backslash works fine in browser and applications, but not in the terminal. Is there a way to add a new key combination for the terminal?
morten (1 rep)
Jun 5, 2024, 11:56 AM • Last activity: Jul 1, 2025, 12:02 PM
1 votes
1 answers
79 views
Change highlight color for deadkey previews (like accents: `´^¨) in terminal app
I've been tweaking the theme / color preferences in the Terminal.app a bit, after a while I found that when pressing a diacritical mark/accent/dead key there's a **highlighted yellow rectangle** showing a preview of the accent you're inputting. Here's an screenshot: [![enter image description here][...
I've been tweaking the theme / color preferences in the Terminal.app a bit, after a while I found that when pressing a diacritical mark/accent/dead key there's a **highlighted yellow rectangle** showing a preview of the accent you're inputting. Here's an screenshot: enter image description here It turns out is not editable from the terminal preferences. In fact it seems like a system wide setting. But it IS incredibly annoying to guess what it is displaying with a dark background + lighter text color in the terminal app: enter image description here Is there anyway to change that yellow color to correctly read those symbols no matter what text/background color is?
40detectives (111 rep)
Oct 23, 2020, 05:33 PM • Last activity: Jun 30, 2025, 11:06 PM
4 votes
2 answers
674 views
How to change language of dictation without changing keyboard input source?
I'm working with an English external keyboard with a Mac (currently running Sonoma) hat also has a built-in German keyboard which I only use occasionally. I use dictation in both English and German. Now, my problem is that when I switch dictation from English to German, my Mac seems to think the key...
I'm working with an English external keyboard with a Mac (currently running Sonoma) hat also has a built-in German keyboard which I only use occasionally. I use dictation in both English and German. Now, my problem is that when I switch dictation from English to German, my Mac seems to think the keys jump around on my keyboard :-) and switches the input source to German, too. In fact, I have not found a way to have German dictation without having to switch the keyboard back to English when I want to type something again, which is pretty annoying. I am switching dictation language not in the settings, but in the popup that appears when using the dictation shortcut. (see screenshot below). In case that matters: I have German, English "US international - PC" and "Britsh - PC" input sources installed, for the different keyboards. popup So, is there a way to switch dictation to German while keeping the keyboard input in English, or is there another workaround I could use to make this preference change more streamlined?
Dr. Hans-Peter Störr (161 rep)
Nov 27, 2023, 07:14 AM • Last activity: Jun 29, 2025, 11:09 AM
0 votes
2 answers
68 views
MacOS Pinyin input method currency symbol
From what I gathered, it seems that the Pinyin simplified input method hardcoded that Shift + 4 inputs a Yuan symbol ¥, and I don't see a way to change it to other currency symbols. I would like it to just input $ instead, since it is used as important operators in programming etc. Changing the...
From what I gathered, it seems that the Pinyin simplified input method hardcoded that Shift+4 inputs a Yuan symbol ¥, and I don't see a way to change it to other currency symbols. I would like it to just input $ instead, since it is used as important operators in programming etc. Changing the system language, region and currency designation doesn't work. Is there a known way to do this, or do I have to install a third-party input method?
Trebor (101 rep)
Jan 29, 2024, 07:05 AM • Last activity: Jun 22, 2025, 04:03 PM
1 votes
4 answers
877 views
missing unicode character
I am searching the Unicode character &#x23FB in Apple's character table. I cannot find it, even though it has been introduced in Unicode 9. I seached the whole unicode tables on the mac. The character looks like the power button on the Mac. When I copy it from the web, it is being replaced by a ques...
I am searching the Unicode character ⏻ in Apple's character table. I cannot find it, even though it has been introduced in Unicode 9. I seached the whole unicode tables on the mac. The character looks like the power button on the Mac. When I copy it from the web, it is being replaced by a question mark. Any ideas on how to use this? I thought unicode was accessible on all devices.
WalterBeiter (457 rep)
Oct 16, 2017, 10:17 AM • Last activity: Jun 13, 2025, 05:28 PM
0 votes
1 answers
122 views
How can I convert a Unicode to a utf-16/8?
I do not think macOS supports 5 character unicodes, so I have to convert it first, but I don't know how to. 😃 should map to hexadecimal 1F603 for example Can anyone help me [type 5 letter unicodes (also known as surrogate pairs)][1]? [1]: https://www.russellcottrell.com/greek/utilities/Surro...
I do not think macOS supports 5 character unicodes, so I have to convert it first, but I don't know how to. 😃 should map to hexadecimal 1F603 for example Can anyone help me type 5 letter unicodes (also known as surrogate pairs) ?
Pete (9 rep)
May 30, 2025, 02:01 AM • Last activity: May 30, 2025, 04:41 PM
28 votes
5 answers
13000 views
What causes this error in my shell: "Unknown locale, assuming C"?
**Note**: The question is not about how to change the locale, or what is the locale. The question is about why is there a locale-based error in ```man``` in 10.3, but no error in 12.6, even though the locales are identical in both cases. I use iTerm, but this appears in terminal.app as well. --- Aft...
**Note**: The question is not about how to change the locale, or what is the locale. The question is about why is there a locale-based error in
in 10.3, but no error in 12.6, even though the locales are identical in both cases. I use iTerm, but this appears in terminal.app as well. --- After running
, reading a manual entry and closing it, I receive the following error
$ man curl                     # The manual opens, I read it, then close
Unknown locale, assuming C
$ man zsh                      # The manual opens, I read it, then close
Unknown locale, assuming C
The manual pages work correctly, and can be browsed, but I have no idea where the error comes from, and it is rather annoying. This is what I obtain when running
$ locale
LANG=""
LC_COLLATE="C"
LC_CTYPE="UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=
I'm using Ventura 13.0. The same error does not happen in 12.6 even though the
is identical (see below), so I do not think that it is an issue with
, but rather an issue with
. Note that
says
LANG         Used as a substitute for any unset LC_* variable.   \  
If LANG is unset, it will act as if set to "C".  If any of LANG or  \  
LC_* are set to invalid values, locale acts as if they are all unset.
so there should be no error,
should be automatically set to
. Trying to narrow this down, I ran the same commands on two computers. Computer 1 runs 13.0 outputs the error. This computer has
for MacOS 13.0 from January 9 2021. Computer 2 runs 12.6 and outputs no error. This computer has
version 1.6g from September 19 2005. The output of the
command is completely identical on both computers, in particular they both have
="UTF-8"
. Could it be a
bug?
Kolja (726 rep)
Nov 24, 2022, 09:17 AM • Last activity: May 21, 2025, 12:49 PM
8 votes
0 answers
726 views
How do I display both Gregorian and Persian dates in the Calendar app?
How do I display both Gregorian and Persian dates in the Calendar app? It only allows "lunar" alt calendars, not Jalali/Persian calendars. [![enter image description here][1]][1] [1]: https://i.sstatic.net/yYb45.png
How do I display both Gregorian and Persian dates in the Calendar app? It only allows "lunar" alt calendars, not Jalali/Persian calendars. enter image description here
HappyFace (712 rep)
Jan 13, 2023, 10:29 AM • Last activity: Apr 6, 2025, 10:29 AM
24 votes
13 answers
132829 views
How to type a TAB character on an iPhone
I'm editing a plain text file on my iPhone and need to type a TAB (`\t`) character. However, I am unable to find it and starting to wonder if it even exists. Anyone able to help me out?
I'm editing a plain text file on my iPhone and need to type a TAB (\t) character. However, I am unable to find it and starting to wonder if it even exists. Anyone able to help me out?
Svish (531 rep)
Feb 24, 2013, 11:00 AM • Last activity: Apr 3, 2025, 06:33 PM
16 votes
2 answers
543 views
How to use Character Viewer with only keyboard and no mouse?
I'm looking for a mouseless/mouse-free solution. And I want to use the whole Character Viewer-- not just certain characters. I can open the Character Viewer with CTRL+CMD+SPACE, but it doesn't have focus, so it seems I have to use my mouse to select anything inside it. How can I give that window key...
I'm looking for a mouseless/mouse-free solution. And I want to use the whole Character Viewer-- not just certain characters. I can open the Character Viewer with CTRL+CMD+SPACE, but it doesn't have focus, so it seems I have to use my mouse to select anything inside it. How can I give that window keyboard focus without using my mouse? And then how can I copy characters from that window without using my mouse?
Pup (686 rep)
Aug 2, 2018, 08:07 PM • Last activity: Mar 3, 2025, 07:40 PM
3 votes
1 answers
1132 views
How can I make my caps lock indicate the current input language?
After a decade on Linux, I've recently transitioned to an ARM MacBook for its convenience and user experience. On my previous Linux-powered HP, I configured the Caps Lock LED to indicate when the Bulgarian keyboard layout was active. I primarily use English and Bulgarian input languages, so having t...
After a decade on Linux, I've recently transitioned to an ARM MacBook for its convenience and user experience. On my previous Linux-powered HP, I configured the Caps Lock LED to indicate when the Bulgarian keyboard layout was active. I primarily use English and Bulgarian input languages, so having the Caps Lock LED illuminate for Bulgarian (and remain off for English) would be ideal. I've already set up my Caps Lock key to switch input languages on the Mac. Is there a straightforward method to replicate the LED behavior here? Note: I frequently use applications in full-screen mode, obscuring the top bar, which is why I prefer a visual keyboard indicator to avoid the need to switch out of full-screen to check the current language, thereby reducing typing errors. Thank you in advance!
bteo (181 rep)
Feb 6, 2024, 01:33 PM • Last activity: Feb 24, 2025, 06:08 AM
0 votes
1 answers
39 views
Do British English keyboards have ISO layout when bought from Apple US?
I want to buy a MacBook from the Apple US store, but I want a British English keyboard layout, specifically with the ISO layout for the Return/Enter key. Do British English keyboards have ISO layout when bought from Apple US?
I want to buy a MacBook from the Apple US store, but I want a British English keyboard layout, specifically with the ISO layout for the Return/Enter key. Do British English keyboards have ISO layout when bought from Apple US?
Paul Razvan Berg (463 rep)
Feb 17, 2025, 11:44 AM • Last activity: Feb 17, 2025, 12:32 PM
4 votes
1 answers
196 views
How can I get the Console to display "can’t" instead of "canÕt"?
It's only a small thing I guess, but I'm annoyed to see errors reported in the console for my AppleScripts where the text of the error message contains substitute characters. e.g. Error Number: -43 Error Message: The operation canÕt be completed. In the error message "can’t" has been replaced b...
It's only a small thing I guess, but I'm annoyed to see errors reported in the console for my AppleScripts where the text of the error message contains substitute characters. e.g. Error Number: -43 Error Message: The operation canÕt be completed. In the error message "can’t" has been replaced by "canÕt" I’m not sure if this is a failure of AppleScript, the shell or console.app. I've tried the usual routes of examining console.app (no settings), System Settings (language & regions and keyboard characters seems not to affect console output). This example demonstrates the problem:
set appName to "textTester"
set targetFolder to "Virtuality:Users:minmin:Documents:" -- an non-existent destination forces the error
try
	tell application "System Events"
		set theResult to name of every file of targetFolder
	end tell
on error errMsg number errNum
	set logEntry to (linefeed & errNum & space & errMsg & linefeed) as text
	tell me to writeToLogFile(logEntry, appName) -- error messages generated by AppleScript itself create the problem
	tell me to writeToLogFile("Who would've thought I can't log this text properly?", appName) -- demonstrates that writing directly to the log is fine	
end try

on writeToLogFile(logEntry, appName)
	local handlerName
	set handlerName to "writeToLogFile"
	set theDate to do shell script "date '+_%Y_%m_%d'"
	set theDate1st to do shell script "date '+_%Y_%m'" --real date 1st would be "date '+_%m_1_%Y'"
	
	set libPath to path to library folder from user domain as string
	set theFolderPath to (libPath & "Logs:") as string
	set theFilePath to (theFolderPath & appName & ":") as string
	
	set theFileName to (appName & theDate1st & ".log")
	set theFile to (theFilePath & theFileName)
	
	try
		set okToContinue to false
		tell application "Finder"			
			--make sure the folder is there
			if (not (exists folder theFilePath)) then
				make new folder at theFolderPath with properties {name:appName}
			end if
			
			--make sure the logfile is there - or turn it over
			if (not (exists theFile)) then
				set theFile to make new file at theFilePath with properties {name:theFileName, file type:"TEXT", creator type:"ttxt"}
			end if
			
			--open and write logfile entries
			set theFile to theFile as alias
			tell me
				set writetoTheThing to open for access theFile with write permission
				write (logEntry & return) to writetoTheThing starting at eof
				
				close access (writetoTheThing)
			end tell
			set okToContinue to true
		end tell
		
	on error errMsg number errNum
		log errMsg
	end try
	return okToContinue
	
end writeToLogFile
Is there indeed a fix?
softlee (43 rep)
Jun 14, 2024, 07:28 AM • Last activity: Feb 12, 2025, 12:56 AM
1 votes
2 answers
1592 views
What are these 𝖬𝖠𝖳𝖧𝖤𝖬𝖠𝖳𝖨𝖢𝖠𝖫 characters, and how can I use them?
Not sure when this feature popped up.. but in the "Special Characters" menu, ^ SPACE (aka my _favorite place_), there are a whole slew of "Mathematical Letters". I can't even find them under the symbols list.. aka `• Arrows`, `• Punctuation`... but they're in there.. and they are CHIC! `𝘗&#1...
Not sure when this feature popped up.. but in the "Special Characters" menu, ^SPACE (aka my _favorite place_), there are a whole slew of "Mathematical Letters". I can't even find them under the symbols list.. aka • Arrows, • Punctuation... but they're in there.. and they are CHIC! 𝘗𝘈𝘙𝘛 𝘖𝘍 𝗔𝖳𝖮𝗭.𝖥𝖱𝖠𝖬𝖤𝖶𝖮𝖱𝖪 © 𝟮𝟬𝟭𝟯 𝖠𝖫𝖤𝖷 𝖦𝖱𝖠𝖸 𝗀𝗂𝗍𝗁𝗎𝖻.𝖼𝗈𝗆/𝗺𝗿𝗮𝗹𝗲𝘅𝗴𝗿𝗮𝘆 here is a snapshot of what the above text looks like on my computer... does it look the same to everyone else? enter image description here here they are in context... enter image description here How can I **use** these fonts... or just type these characters directly, without having to hunt and peck with the mouse in the "Special" characters palette? EDIT: After some recent futzing with my FontExplorer Pro setup, I realized i NO LONGER HAD these beautiful fonts. After much messing around, I figured out THESE ARE NOT PART OF MAC OS X, unfortunately. They are part of the "XITS Math" font collection. This is listed as the font's "description"... > Arie de Ruiter, who in 1995 was Head of Information Technology Development at Elsevier Science, made a proposal to the STI Pub group, an informal group of publishers consisting of representatives from the American Chemical Society (ACS), American Institute of Physics (AIP), American Mathematical Society (AMS), American Physical Society (APS), Elsevier, and Institute of Electrical and Electronics Engineers (IEEE). De Ruiter encouraged the members to consider development of a series of Web fonts, which he proposed should be called the Scientific and Technical Information eXchange, or STIX, Fonts. All STI Pub member organizations enthusiastically endorsed this proposal, and the STI Pub group agreed to embark on what has become a twelve-year project. The goal of the project was to identify all alphabetic, symbolic, and other special characters used in any facet of scientific publishing and to create a set of Unicode-based fonts that would be distributed free to every scientist, student, and other interested party worldwide. The fonts would be consistent with the emerging Unicode standard, and would permit universal representation of every character. With the release of the STIX fonts, de Ruiter's vision has been realized. What a weird.. *and fabulous* font. More info can be found here. enter image description here enter image description here enter image description here
alex gray (1035 rep)
Oct 3, 2013, 10:46 PM • Last activity: Dec 25, 2024, 01:54 PM
1 votes
1 answers
165 views
How can I select an International Keyboard after version 18 of the iPadOS?
I was using my iPad keyboard with the international layout, and everything was working properly. After I updated to version 18 of iPadOS, it stoped working and I cannot configure it again. I want to be able to use accents like “ã” and “á” by just inputing the symbol and then the letter. Fo...
I was using my iPad keyboard with the international layout, and everything was working properly. After I updated to version 18 of iPadOS, it stoped working and I cannot configure it again. I want to be able to use accents like “ã” and “á” by just inputing the symbol and then the letter. For example “shift + ~”, followed by “a” yields “ã”. I do not want the style of control / option / cmd + a, as it does not include all possible accents. And I do not want to hold down the “a” key, as it slow down typing. How do I configure this on iPadOS 18 and later?
Gustavo Amarante (121 rep)
Dec 22, 2024, 03:51 PM • Last activity: Dec 22, 2024, 06:07 PM
1 votes
0 answers
60 views
How to lookup keybinding translation across input sources
I have an application that binds a menu item to trigger on `⌘]`. When I set the US input source, I press `⌘]` in order to trigger that item. However, when I switch the input source to QWERTZ (German), the trigger changes to `⌘Ä` automatically by the OS. It seems to translate keystrokes for diff...
I have an application that binds a menu item to trigger on ⌘]. When I set the US input source, I press ⌘] in order to trigger that item. However, when I switch the input source to QWERTZ (German), the trigger changes to ⌘Ä automatically by the OS. It seems to translate keystrokes for different input sources. enter image description here The problem is that I also render the keybindings in a Window in my application, and my application is not aware of this translation. Furthermore, I have other key shortcuts in my application which are not bound to menu items, and I want to make sure those get translated too. Does AppKit expose a way to lookup what a keystroke will be when MacOS translates it, i.e. lookup ⌘Ä from ⌘] when the current layout is QWERTZ? I can't find anything in Apple's docs. I tried converting a character to virtual key code based on the US layout and then mapping it back to a character based on the QWERTZ layout. That doesn't seem to be the same b/c that ends up converting ] to + instead which seems to be based on physical key location, different from how the keybindings are handled. Update: I notice similar behavior for VS Code's menu bar, e.g. in their "Terminal" menu. Switching to German changes some bindings. This does not occur at all in iTerm's menu bar, I suspect b/c their menu items are specified in a different way, xib files with hard-coded key equivalents .
Andy Carlson (61 rep)
Dec 17, 2024, 02:51 AM • Last activity: Dec 20, 2024, 09:11 PM
0 votes
1 answers
181 views
ipad external keyboard switching between layouts stopped working after update to 18.1
My Ipad pro updated itself to the latest ios version 18.1, which introduced a problem using multiple keyboard layouts. I have an apple external keyboard (en-us layout). Before the update, I could easily switch between different layouts by pressing the `Globe' button. I often need to switch between e...
My Ipad pro updated itself to the latest ios version 18.1, which introduced a problem using multiple keyboard layouts. I have an apple external keyboard (en-us layout). Before the update, I could easily switch between different layouts by pressing the `Globe' button. I often need to switch between en-us, swedish and greek, sometimes all three within a few sentences. After the update, there are 'multi-lingual' keyboards, but I can't get this to work. So far, even getting swedish to work failed (even without being able to switch). When in the settings I only have a swedish keyboard (after deleting all the ohters), the en-us layout of the external keyboard is used anyway. Note that the 'software keyboard' on the screen does switch to the swedish layout, but I need to be able to use the external keyboard, using different layouts. I tried google and searched this site, but that didn't help. Any feedback, hits etc. would be greatly appreciated!
eddy ardonne (121 rep)
Dec 8, 2024, 11:17 AM • Last activity: Dec 9, 2024, 07:17 AM
Showing page 1 of 20 total questions