MAC-OSX https://datastorageguy.com Consulting Services and Tech-Tips from Ben Patridge Wed, 26 Nov 2025 18:07:22 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.1 https://datastorageguy.com/wp-content/uploads/2025/11/cropped-dsgplatter-32x32.png MAC-OSX https://datastorageguy.com 32 32 189268276 On MacOSX Sequoia Key Repeat Not working for the letter J and K https://datastorageguy.com/2025/11/26/on-macosx-sequoia-key-repeat-not-working-for-the-letter-j-and-k/ Wed, 26 Nov 2025 17:30:59 +0000 https://datastorageguy.com/?p=337 As a hopeless Linux-A-Holic I spend my life in Terminal.

However on OSX Sequoia it drove me Bat Sheep crazy that key repeat would not work when in the VI editor using the letter J and K.

I tried numerous 'fixes' and the only solution that I found that worked was the following:

Open iTerm2 and sudo to root

defaults write -g ApplePressAndHoldEnabled -bool false

Modify the key repeat speed for a shorter delay

defaults write -g InitialKeyRepeat -int 10

Restart Terminal.

I use Devolutions Remote Desktop Manager and the above did not work.

With RDM I had to upgrade to a later version and disable on-hold suggestions via the UI

The above was discussed in the following Tech Article on their website

]]>
337
MACOS – Clicking on webpage automatically jumps to top of the page https://datastorageguy.com/2024/02/21/macos-clicking-on-webpage-automatically-jumps-to-top-of-the-page/ Wed, 21 Feb 2024 21:21:46 +0000 https://datastorageguy.com/?p=298 I recently encountered yet another MAC Madness issue!

I changed out my wired MacBook extended keyboard for a used Apple 'Magic' Keyboard.

Well the 'magic' was that it introduced an unwanted 'feature' whereby when I switch between external monitors, and the webpage in view is scrolled downward, the page would automagically jump to the top of the page. I am at Geek Level 4 in that I have 3 external monitors. So switching between them would move any object on that page automatically to the top; text box, text editor, webpage/etc.

After trolling the Google Verse I didn't find anything useful.

So after hacking at the Settings on MacOS Ventura I figured it out.

I went to Settings --> Accessibility --> Keyboard

Then uncheck Full Keyboard Access

After that I was back in business.

]]>
298
iterm2 adds line break when copying text https://datastorageguy.com/2022/10/10/iterm2-adds-line-break-when-copying-text/ Mon, 10 Oct 2022 20:50:49 +0000 https://datastorageguy.com/?p=226 I had an issue that drove me crazy for weeks.

When I would highlight text in iterm2 to copy it, upon pasting it would always add a carriage return (line-break) at the end of the line. Thus the line that I copied would not be contiguous.

This is extremely annoying when attempting to copy log file contents.

The solution was simpler and somewhat counter intuitive.

In iterm2 there is an option under Preferences --> General --> Selection

Check "Copied text includes trailing newline"

]]>
226
Double click select entire word in terminal (iterm2) on MAC OSX https://datastorageguy.com/2022/10/03/double-click-select-entire-word-in-terminal-iterm-on-mac-osx/ Mon, 03 Oct 2022 22:03:19 +0000 https://datastorageguy.com/?p=220 I have had issues when using Remote Desktop Manager Free (RDM) for MAC OSX.

Firstly ensure that you have iterm2 selected as the terminal

Next you want to be sure you are using the Legacy Engine set to NO under

Preferences > Types > Terminal:

I filed a bug with Devolutions and here is the reference link: https://forum.devolutions.net/topics/35957/doubleclick-select-in-terminal

]]>
220
Determine the Active Network Interface and IP address from Terminal on a MAC https://datastorageguy.com/2022/09/28/determine-the-active-network-interface-and-ip-address-from-terminal-on-a-mac/ Wed, 28 Sep 2022 21:00:59 +0000 https://datastorageguy.com/?p=216 On a MAC (OSX) Using the command line (Terminal) often you want a quick way to determine the Active Network Interfaces along with the IP address.

Here is a quick 'alias' you can make to get the IP(s)

# scutil --nwi|awk 'BEGIN {s=0} $0 ~ /^IPv4/ {s=1;next} s==1 && $0 ~ /flags/ {intf=$1;next} s==1 && $1 ~ /address/ {ip=$NF; print intf,ip} $1 ~ /REACH/{exit}'

Example Output

# scutil --nwi|awk 'BEGIN {s=0} $0 ~ /^IPv4/ {s=1;next} s==1 && $0 ~ /flags/ {intf=$1;next} s==1 && $1 ~ /address/ {ip=$NF; print intf,ip} $1 ~ /REACH/{exit}'
en9 192.168.1.88

Creating a small bash script in /usr/local/bin/ so you can reference it anytime.

#!/bin/bash
# scutil --nwi|awk 'BEGIN {s=0} $0 ~ /^IPv4/ {s=1;next} s==1 && $0 ~ /flags/ {intf=$1;next} s==1 && $1 ~ /address/ {ip=$NF; print intf,ip} $1 ~ /REACH/{exit}'

If you wish to only view the active interfaces on MAC OS you can do the following and create an alias for it

#ifconfig | pcregrep -M -o '^[^\t:]+(?=:([^\n]|\n\t)*status: active)'

Example Output

# ifconfig | pcregrep -M -o '^[^\t:]+(?=:([^\n]|\n\t)*status: active)'
en9
en6
]]>
216
Using Home and End Key on MAC External Keyboard in Royal TSX Terminal AND Regular MAC applications (apps) https://datastorageguy.com/2021/04/30/using-home-and-end-key-on-mac-external-keyboard-in-royal-tsx-terminal-and-regular-mac-applications-apps/ Fri, 30 Apr 2021 17:24:51 +0000 https://datastorageguy.com/?p=85

I went all over the know Interwebz Universe attempting to find a solution for this and finally figured out a way to make both happen.

The original problem was that I could use Karabiner Elements for Mac to setup my External MAC keyboard to use various familiar Windows keyboard actions (such as pressing the HOME or END key) in applications such as TextEdit/Word/Outlook/etc.

However... the problem was, when launching Terminal (specifically in Royal TSX) I was unable to make it work.

It became an either/or relationship. I was only able to get one or the other working.

SOLUTION



PART I

In Karabiner Element I go to Add Complex Modifications

Then click on Add rule




Then search for 'home' and the following rule that will use COMMAND+a  for HOME and COMMAND+e for END


Import the rules

And then select ENABLE for these TWO


Now you will see the following



Now in your apps such as TextEdit/Outlook/Word/etc, pressing the HOME key will bring the cursor to the beginning of the line,or END key to the end of the line.



PART II

In ROYAL TSX

Locate your Terminal and go to properties


Scroll down to ADVANCED --> INPUT then go to  KEY MAPPINGS



Click on ADD Then click SET and press the HOME key


It will then populate the keystroke. Scroll down and select SEND HEX CODE


For the HOME Key Enter 0x10




Repeat the above except for the END key, use 0x05
|


Now back at the main screen we can see we have to new combinations for the HOME and END key




SUCCESSFUL RESULTS

APPLICATION EXAMPLE:





ROYAL TSX TERMINAL EXAMPLE







]]>
85
Mouse Lag after upgrading to Big Sur https://datastorageguy.com/2021/03/26/mouse-lag-after-upgrading-to-big-sur/ Fri, 26 Mar 2021 20:29:13 +0000 https://datastorageguy.com/?p=66

Recently I upgraded my laptop to Mac OSX Big Sur and it has been a Mouse Nightmare with my Logitec MX Master 2S Mouse

I went to the Logitech Support website and referenced the following link regarding Big Sur Problems

After upgrading the Logitec drivers, the issue persisted.

I found the following solution that helped to reset the Mouse settings


$ mkdir $HOME/backups
$ find $HOME/Library/Preferences -type f -iname "*mouse*" -exec mv -f {} $HOME/backups \;
$ reboot

But the main problem in my case, was that I was connecting my mouse to my MACBook laptop thru a USB extender.

The MACBook Pro only has 2 USB ports.

I purchased a 5 port USB extender I was using for all devices and I had the Logitec Bluetooth Adapter plugged into the USB Extender; apparently this causes latency.

As a matter of troubleshooting I removed all USB devices and plugged only the Logitec Bluetooth Device in and the mouse worked perfectly.

Because I needed the ports, I paired the mouse with the native Bluetooth, and now all is well in Mouse Madness Universe!

]]>
66