cdk_position(3)

πŸ“¦
version 5.0.20260119 Β· 2 versions
, in debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– cdk_position β€” the glow-up guide to moving ur widgets around πŸ’–

soooo this is a page from the Cdk library manual, section 3 (library calls), and bestie, it's literally all about positioning key-bindings. Cdk is a curses widget toolkit and this page tells you which keys nudge a widget around the screen. Slay. ✨


✨ NAME ✨

cdk_position β€” Cdk widget positioning key-bindings πŸŽ€


🌸 SYNOPSIS 🌸

Position methods for the Cdk widgets let the user move the widget around the screen using the cursor/keypad keys. That's it, that's the whole vibe. πŸ¦‹


πŸ’… DESCRIPTION πŸ’…

okay so here's the tea, bestie β€” these are the key bindings you can use to move a widget around the screen:

  • Up Arrow β€” moves the widget up one row ⬆️
  • Down Arrow β€” moves the widget down one row ⬇️
  • Left Arrow β€” moves the widget left one column ⬅️
  • Right Arrow β€” moves the widget right one column ➑️
  • 1 β€” moves the widget down one row and left one column
  • 2 β€” moves the widget down one row
  • 3 β€” moves the widget down one row and right one column
  • 4 β€” moves the widget left one column
  • 5 β€” centers the widget both vertically and horizontally (main character move fr fr πŸ‘‘)
  • 6 β€” moves the widget right one column
  • 7 β€” moves the widget up one row and left one column
  • 8 β€” moves the widget up one row
  • 9 β€” moves the widget up one row and right one column
  • t β€” moves the widget to the top of the screen
  • b β€” moves the widget to the bottom of the screen
  • l β€” moves the widget to the left of the screen
  • r β€” moves the widget to the right of the screen
  • c β€” centers the widget between the left and right of the window
  • C β€” centers the widget between the top and bottom of the window
  • Escape β€” returns the widget to its original position (the undo button of vibes πŸ™ˆ)
  • Return β€” exits the function and leaves the widget where it was

and now the lore drop about those digits: the numbers 0-9 are chosen to correspond to the numeric keypad on your terminal. Iconic, right? But here's the catch, bestie:

⚠️ Cdk does not handle the application mode keypad control sequences, because those are not defined via terminfo. So if you wanna use the numeric keypad, make sure it's in normal (or NumLock) mode. Do not skip this step, I'm begging you. 😭

πŸ¦‹ SEE ALSO πŸ¦‹


k that's the whole page, periodt. πŸ’– this was the cdk_position(3) man page from the Cdk library, dated 2024-03-28 β€” go forth and position ur widgets, bestie, you're literally gonna ate. πŸŽ€βœ¨πŸ«Ά