Sponsored Content
Full Discussion: vi and pico
Top Forums UNIX for Dummies Questions & Answers vi and pico Post 14468 by navarra_rd on Thursday 31st of January 2002 09:47:02 PM
Old 01-31-2002
MySQL Pico!!!!!!

i approve to what cns said. Pico is more user-friendly!
you can see a menu bar at the bottom side of the screen. The letters with a ^ sign before it would be executed simultaneously by pressing the leter and the Ctrl keys.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how do i install Pico onto a unix system?

I was just wondering how to install Pioc onto FreeBSD? could someone help mee? (1 Reply)
Discussion started by: Swifty
1 Replies

2. UNIX for Dummies Questions & Answers

Setting up pine(pico)

I'm trying to setup the pico editor, which comes with pine. But I am not sure how to activate pine. I'm using the newest stable version of openbsd. If someone could tell me what file to execute, or, if not 'onboard' the package, where to get it. I would be much obliged. Req (1 Reply)
Discussion started by: Requeth
1 Replies

3. UNIX for Dummies Questions & Answers

pico text editor

I was wondering if there is any way to get a version of pico for windows. I have done a lot of programming work on Linux/UNIX exvironments for school, and I enjoy using pico for my programming needs, but I find all of the text editors in windows horrible, they distort my code and do not adhere to... (5 Replies)
Discussion started by: popac
5 Replies

4. UNIX for Dummies Questions & Answers

question about pico?

Quick question for all of you Unix gurus. What are your thoughts on Pico as an editor. I have been using this editor for the last week or so and have made a lot of headway with my script writing. However, I find a lot of the quirks associated with this editor to be quite annoying. For instance,... (1 Reply)
Discussion started by: wmosley2
1 Replies

5. UNIX for Dummies Questions & Answers

How to load text editor PICO

Hi... I was wondering if anyone has any step by step guide on how to load the UNIX text editor PICO onto the Sun box? Thanks :) (2 Replies)
Discussion started by: atomicsushi
2 Replies

6. UNIX for Dummies Questions & Answers

Pico?

Is pico editor not availible on all versions of Unix? I do have vi and emacs, but pico just give me a response of "not found". (4 Replies)
Discussion started by: dereckbc
4 Replies

7. UNIX for Dummies Questions & Answers

Can't run emacs, pico..

Hello, I cannot run emacs or pico from my Sun OS command shell. My account does not have a .cshrc file also. When I tried to make a text file and copied it to my account by the name .cshrc, the source commands I place in it do not work. Can anybody tell me how can I solve this? Any help... (8 Replies)
Discussion started by: aryajur
8 Replies

8. UNIX for Dummies Questions & Answers

Lost pico editor

I del a lot of files,after that I can't find pico. I have to use vi. However, I like pico. Can should I do ? (4 Replies)
Discussion started by: zhshqzyc
4 Replies

9. UNIX for Dummies Questions & Answers

pico vs vim

I always used pico as a text editor in Terminal or SSH. But what is the advantages/disadvantages between vim and pico? (7 Replies)
Discussion started by: timgolding
7 Replies

10. UNIX for Dummies Questions & Answers

Ed vs pico

Hello! Please, can someone make me clear the difference betveen and interactive and non-interactive test editor? (is not each editor somehow "interactive"???) Many thanks!!! (0 Replies)
Discussion started by: pinklemon
0 Replies
cdk_menu(3)						     Library Functions Manual						       cdk_menu(3)

NAME
cdk_menu - curses menu widget SYNOPSIS
cc [ flag ... ] file ... -lcdk [ library ... ] #include <cdk.h> int activateCDKMenu ( CDKMENU *menu, chtype * actions); void destroyCDKMenu ( CDKMENU *menu); void drawCDKMenu ( CDKMENU *menu, boolean box); void drawCDKMenuSubwin ( CDKMENU *menu); void eraseCDKMenu ( CDKMENU *menu); void eraseCDKMenuSubwin ( CDKMENU *menu); void getCDKMenuCurrentItem ( CDKMENU *menu, int *menuItem, int *submenuItem); chtype getCDKMenuSubTitleHighlight ( CDKMENU *menu); chtype getCDKMenuTitleHighlight ( CDKMENU *menu); int injectCDKMenu ( CDKMENU *menu, chtype input); CDKMENU *newCDKMenu ( CDKSCREEN *cdkscreen, char *menulist[MAX_MENU_ITEMS][MAX_SUB_ITEMS], int menuListLength, int *submenuListLength, int *menuLocation, int menuPos, chtype titleAttribute, chtype subtitleAttribute); void setCDKMenu ( CDKMENU *menu, int menuItem, int submenuItem, chtype titleAttribute, chtype subtitleAttribute); void setCDKMenuBackgroundAttrib ( CDKMENU *menu, chtype attribute); void setCDKMenuBackgroundColor ( CDKMENU *menu, char * color); void setCDKMenuCurrentItem ( CDKMENU *menu, int menuItem, int submenuItem); void setCDKMenuPostProcess ( CDKMENU *menu, PROCESSFN callback, void * data); void setCDKMenuPreProcess ( CDKMENU *menu, PROCESSFN callback, void * data); void setCDKMenuSubTitleHighlight ( CDKMENU *menu, chtype highlight); void setCDKMenuTitleHighlight ( CDKMENU *menu, chtype highlight); DESCRIPTION
The Cdk menu widget creates a pull-down menu list. The following are functions which create or manipulate the Cdk menu widget. AVAILABLE FUNCTIONS
activateCDKMenu activates the menu widget and lets the user interact with the widget. The parameter menu is a pointer to a non-NULL menu widget. If the actions parameter is passed with a non-NULL value, the characters in the array will be injected into the widget. To activate the widget interactively pass in a NULL pointer for actions. If the character entered into this widget is RETURN then this then this function returns an integer which is a value of the current menu list * 100 + the sub-menu number. It will also set the widget data exitType to vNORMAL. If the character entered into this widget was ESCAPE then the widget will return a value of -1 and the widget data exitType will be set to vESCAPE_HIT. destroyCDKMenu removes the widget from the screen and frees memory the object used. drawCDKMenu draws the menu widget on the screen. If the box parameter is true, the widget is drawn with a box. drawCDKMenuSubwin draws the menu item subwindow. eraseCDKMenu removes the widget from the screen. This does NOT destroy the widget. eraseCDKMenuSubwin erases the menu item subwindow. getCDKMenuCurrentItem returns the values menuItem and submenuItem to the current menu selection. getCDKMenuSubTitleHighlight returns the highlight attribute of the sub-menu selection bar. getCDKMenuTitleHighlight returns the highlight attributes of the menu title. injectCDKMenu injects a single character into the widget. The parameter menu is a pointer to a non-NULL menu widget. The parameter character is the character to inject into the widget. The return value and side-effect (setting the widget data exitType) depend upon the injected character: RETURN or TAB the function returns the current menu list * 100 + the sub-menu number. The widget data exitType is set to vNORMAL. ESCAPE the function returns -1. to vESCAPE_HIT. The widget data exitType is set to vESCAPE_HIT. Otherwise unless modified by preprocessing, postprocessing or key bindings, the function returns -1. The widget data exitType is set to vEARLY_EXIT. newCDKMenu creates a menu widget and returns a pointer to it. Parameters: screen is the screen you wish this widget to be placed in. menuList is a list of the menu list titles. menuListLength is the number of pull down menus. submenuListLength is the number of menu items under each menu list. menuLocation tells where each menu is to be located. Valid values are LEFT and RIGHT. menuPos tells whether the menu is to be on the top of the screen or the bottom. Valid values are TOP and BOTTOM. titleAttribute and subtitleAttribute are the character attributes of the title and sub-titles respectively. If the widget could not be created then a NULL pointer is returned. setCDKMenu lets the programmer modify certain elements of an existing menu widget. The parameters menuItem and submenuItem set which menu list and sub-menu item are going to be highlighted when the widget is activated. The other parameter names correspond to the same parame- ter names listed in the newCDKMenu function. setCDKMenuBackgroundAttrib sets the background attribute of the widget. The parameter attribute is a curses attribute, e.g., A_BOLD. setCDKMenuBackgroundColor sets the background color of the widget. The parameter color is in the format of the Cdk format strings. See cdk_display (3). setCDKMenuCurrentItem sets the current item in the menu widget. setCDKMenuPostProcess allows the user to have the widget call a function after the key has been applied to the widget. The parameter function is the call- back function. The parameter data points to data passed to the callback function. To learn more about post-processing see cdk_process (3). setCDKMenuPreProcess allows the user to have the widget call a function after a key is hit and before the key is applied to the widget. The parameter function is the callback function. The parameter data points to data passed to the callback function. To learn more about pre-pro- cessing see cdk_process (3). setCDKMenuSubTitleHighlight sets the highlight attribute of the sub-menu selection bar. setCDKMenuTitleHighlight sets the highlight attributes of the menu title. KEY BINDINGS
When the widget is activated there are several default key bindings which will help the user enter or manipulate the information quickly. The following table outlines the keys and their actions for this widget. +----------------+-------------------------------------+ |Key | Action | +----------------+-------------------------------------+ |Left Arrow | Highlights the menu list to the | | | left of the current menu. | +----------------+-------------------------------------+ |Right Arrow | Highlights the menu list to the | | | right of the current menu. | +----------------+-------------------------------------+ |Up Arrow | Moves the current menu selection up | | | one. | +----------------+-------------------------------------+ |Down Arrow | Moves the current menu selection | | | down one. | +----------------+-------------------------------------+ |Space | Moves the current menu selection | | | down one. | +----------------+-------------------------------------+ |Tab | Highlights the menu list to the | | | right of the current menu. | +----------------+-------------------------------------+ |Return | Exits the widget and returns the | | | index of the selected item. This | | | also sets the widget data exitType | | | to vNORMAL. | +----------------+-------------------------------------+ |Escape | Exits the widget and returns -1. | | | This also sets the widget data | | | exitType to vESCAPE_HIT. | +----------------+-------------------------------------+ |Ctrl-L | Refreshes the screen. | +----------------+-------------------------------------+ SEE ALSO
cdk(3), cdk_binding(3), cdk_display(3), cdk_screen(3) cdk_menu(3)
All times are GMT -4. The time now is 02:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy