Home > OSX > making pageup/pagedown work in emacs in OS X Terminal.

making pageup/pagedown work in emacs in OS X Terminal.

September 13th, 2005 Bob Leave a comment Go to comments

Out of the box, the pageup and pagedown keys don’t do what I want when I’m running emacs in the OS X Terminall app. They page up and down through the Terminal buffer, rather than the emacs buffer.

Bother you, too? Here’s how to fix it, with thanks to Mac OSX Hints:

$ tcsh
% set echo_style=both
% echo -n "\e[5~ | pbcopy
% exit

In Terminal Inspector (Terminal/Window Settings/Keyboard),

  • highlight page down;
  • press Edit button;
  • select “send string to shell:” from Action list;
  • tab into input field;
  • paste (apple-v);
  • press OK;
  • highlight shift page down;
  • press Edit button;
  • select “scroll to next page in buffer” from Action list;
  • press OK;
  • highlight shift page up;
  • press Edit button;
  • select “scroll to previous page in buffer” from Action list;
  • press OK;
  • press “Use Settings as Defaults” button.
Categories: OSX Tags:
  1. No comments yet.
  1. No trackbacks yet.