Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Pasting text in VI editor from a different editor Post 302234577 by harishmitty on Wednesday 10th of September 2008 01:04:57 AM
Old 09-10-2008
Yes, but Middle-click or shift-insert isn't working within 'vi' editor.
It works in gedit.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

VI or text editor

Before I learned how wonderfull VI and Unix was. I used a little crappy DOS editor. I wouldn't go back to it for anything. However I work with a lot of formatted files that use the column position. I wonder if any here knows of a way to make VI display the cursors coulmn position or if there is a... (2 Replies)
Discussion started by: Chrisg411
2 Replies

2. UNIX for Dummies Questions & Answers

Text editor on Sun OS 3.0

I trying to setup a netranger security box. I don't know unix and went to view a filein the text editor. What is command to exit text editor. I tried esc q and ctrl q. HELP!!! STUCK IN TEXT EDITOR :) (2 Replies)
Discussion started by: malic
2 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

Text editor

I currently use konsole fo rmy terminal use. when i go into vi and type the letter t the stupied thing highlights the letter brown and it messes my thing up. Whereever i type the letter t it highlights in brown. Is there some way to change it. I dont know how this problem start. RH 8 (3 Replies)
Discussion started by: ASpin
3 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. Shell Programming and Scripting

set EDITOR=vi -> default editor not setting for cron tab

Hi All, I am running a script , working very fine on cmd prompt. The problem is that when I open do crontab -e even after setting editor to vi by set EDITOR=vi it does not open a vi editor , rather it do as below..... ///////////////////////////////////////////////////// $ set... (6 Replies)
Discussion started by: aarora_98
6 Replies

7. Solaris

Epic Editor was not able to obtain a license for your use. Feature Epic Editor :Licen

Epic Editor was not able to obtain a license for your use. Feature Epic Editor :License server is down (1 Reply)
Discussion started by: durgaprasadr13
1 Replies

8. Programming

Text editor in C

Hi, I want to create a text editor in C on Unix. Can any1 jus tell me how to start with n wat all I have to look into if I have to write an editor.. Thanks (2 Replies)
Discussion started by: julie_s
2 Replies

9. UNIX for Dummies Questions & Answers

Any better text editor for unix?

Do you know any text editor (other than Gvim, which I am using) which is made specially for c type languages? The reason I ask for it is: I just spent 3 hours trying to find out start "if" and its end "if end".:wall: I hope there is an editor which can link each if with its closing endif . (4 Replies)
Discussion started by: animesharma
4 Replies

10. Solaris

Default text editor

Hi, sorry if something similar has already asked. But I am interested how to change default text editor on Unix Solaris? When I open File Manager -> Edit -> Properties.. -> Category (Advanced Settings) -> Default Editor (Other) I have something like: shelltool sh -c "sleep 3; vi $FILE"... (13 Replies)
Discussion started by: spuzh
13 Replies
StringEditor(3I)					    InterViews Reference Manual 					  StringEditor(3I)

NAME
StringEditor - single line interactive string editor SYNOPSIS
#include <InterViews/streditor.h> DESCRIPTION
StringEditor is an interactor that provides a convenient mouse-based interactive editor for text strings. It is suitable for incorporation into other components such as dialog boxes. Clicking inside the StringEditor (or calling the Edit function) initiates an edit. Subsequent keyboard events, which need not be inside the StringEditor, are interpreted as editing operations on the text. Clicking outside the StringEdit terminates the edit. StringEditor works with either fixed width or proportionally spaced fonts. EDITING MODEL
Text is selected with the mouse or with the keyboard. A single click of the left mouse button selects a new insertion point between char- acters. Dragging across the text selects a range of characters. A set of control characters is mapped into common editing operations. A character not specifically associated with commands is inserted in place of the the current selection, the replaced text is lost, and the selection becomes an insertion point following the inserted character. Commands currently defined include the following. CharacterLeft (^B) CharacterRight (^F) BeginningOfText (^A) EndOfText (^E) Move the selection one character position to the left or right, or to the beginning or end of the text. Erase (^H, DEL) Delete (^D) Delete the text of the current selection. If the selection is an insertion point, delete the previous character (Erase) or the next character (Delete) instead. SelectAll (^U) SelectWord (^W) Select the entire text, or extend the selection to the left by one whole word. These commands enable common editing operations to be performed without using the mouse. For example, to replace the previous word in the text, do a SelectWord and type the new text. SCROLLING
Strings that are too long to fit into the StringEditor can be scrolled horizontally. Middle-clicking inside the StringBrowser initiates ``grab-scrolling''. While the button is held down, the StringEditor scrolls the text to follow the mouse position, making it appear as though the user is dragging the test. Right-clicking engages ``rate-scrolling,'' a joy-stick-like scrolling interface in which the scrolling rate increases as the user drags the mouse away from the initial click point. For example, dragging the mouse rightwards after the initial click scrolls the browser rightwards at an increasing rate; dragging leftwards thereafter reduces the rate until scrolling stops entirely at the initial click point. Dragging left beyond this point makes the browser scroll in the reverse direction. PUBLIC OPERATIONS
StringEditor(ButtonState*, const char* sample, const char* done) Create a new StringEditor object. The ButtonState will be used to communicate the result of editing operations. An edit of the string will be terminated if any character in the string done is typed, and the ButtonState will be set to the terminating charac- ter. The shape of the new object is calculated from the length of the sample string. void Message(const char* text) Set the contents of the edit buffer to text. void Select(int point) void Select(int left, int right) Select an insertion point or a subrange of the edit buffer. void Edit() void Edit(const char* text, int left, int right) Initiate an edit. Specifying a string and selection range is short hand for first calling Message and Select with the corresponding parameters. const char* Text() Return the current value of the edit buffer. Note that this buffer is owned by the StringEditor, and that its contents are subject to change. It is the caller's responsibility to copy the string if the value will be needed in the long term. Handle(Event&) Handle the event, and read and process subsequent events until an Accept or Cancel command is executed or a down click occurs out- side the StringEditor's bounds. PROTECTED OPERATIONS
virtual boolean HandleChar(char) void InsertText(const char* text, int length) Subclasses of StringEditor can perform additional processing on the edit buffer. For instance, an editor for file names might do file name completion, or an editor for numeric input might check the validity of the string as it is entered. Derived classes should redefine the virtual function HandleChar as required. HandleChar should return true to indicate that the edit is completed, or false otherwise. InsertText can be used to insert text into the edit buffer, replacing any currently selected text. SEE ALSO
Interactor(3I), Button(3I) InterViews 23 May 1989 StringEditor(3I)
All times are GMT -4. The time now is 01:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy