Her satıra birden fazla komut kullanan bir örnek bulamıyorum. Örneğin, bir satırda birden çok komut düzeyine sahip olabileceğiniz, cisco ios benzeri bir kısayol yazmak istediğimi varsayalım. Örn.,J Hat başına çoklu sözcük komutlarını kullanan satır örneği
örn. ilk kelime "show" olabilir, daha sonra "show" yazıp "hit" sekmesine bastığınızda, bir sonraki seçenekler grubu görüntülenir (cisco exmaple listeyi göstermek için "?" kullanır).
eg:
gw1#show ?
aaa Show AAA values
access-expression List access expression
access-lists List access lists
accounting Accounting data for active sessions
adjacency Adjacent nodes
..
gw1#show ip ?
access-lists List IP access lists
accounting The active IP accounting database
admission Network Admission Control information
aliases IP alias table
arp IP ARP table
..
gw1#show ip interface ?
ATM ATM interface
Async Async interface
BVI Bridge-Group Virtual Interface
CDMA-Ix CDMA Ix interface
..
gw1#show ip interface
Bir seferde bir karakter okumak ve ben bir boşluk gördüğünüzde sonra bugüne kadar çizgisini ayrıştırmak için readCharacter kullanarak düşünüyorum.
Bu tür bir gereksinimle başka herhangi bir Jline deneyimi oldu mu?