Skip to content

Instantly share code, notes, and snippets.

@marrold
Created December 15, 2021 21:26
Show Gist options
  • Save marrold/5d7ebe222881a22226d4b8ac94409f5c to your computer and use it in GitHub Desktop.
Save marrold/5d7ebe222881a22226d4b8ac94409f5c to your computer and use it in GitHub Desktop.
Pretty menus for Cisco
!
! The following config allows you to create a basic menu system on a Cisco
! device. It can then be ran as an autocommand to allow users to select an
! option to connect to an external service or run another command.
!
! Build the menu.
!
menu main line-mode
menu main clear-screen
menu main single-space
menu main title $
__ ________ _ _____ ____ __ __ ______
\ \ / / ____| | / ____/ __ \| \/ | ____|
\ \ /\ / /| |__ | | | | | | | | \ / | |__
\ \/ \/ / | __| | | | | | | | | |\/| | __|
\ /\ / | |____| |___| |___| |__| | | | | |____
\/ \/ |______|______\_____\____/|_| |_|______|
$
menu main prompt $
Select an option and hit enter:
$
menu main text 1 login to Synchronet
menu main command 1 telnet 10.0.130.125 23
menu main text 2 view help
menu main command 2 menu help
menu main text q disconnect
menu main command q exit
!
!
menu help line-mode
menu help clear-screen
menu help single-space
menu help title $
This menu system allows you to select a BBS from the list.
A connection will then be initiated to the BBS.
$
menu help prompt $
Select an option and hit enter:
$
menu help text 1 return to main menu
menu help command 1 menu main
menu help text q disconnect
menu help command q exit
!
!
! Configure the line to automatically connect to the menu on connection
!
line 2/0 2/5
no motd-banner
no exec-banner
privilege level 0
autocommand menu main
terminal-type XTERM-256COLOR
escape-character NONE
autohangup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment