i was looking for a free text editor for my pc and i remind myself about vim the editor . When clicking on the download section of the vim site i discovered that already exist an amiga version but unfortunatly this one was outdated. The PC version is dated 2010-08-15 while the amiga version is dated 30 Jul 07. On os4depot there is also another amiga version but it requires the server X11. Is it possible to update the existing native version for the new Amiga OS 4.1 Update 2?
that one works natively, although within a shell. if you're looking for VIM with fancy GTK or QT bindings, i.e., a graphic interface, then no, we don't have one save GVIM for amicygnix.
but the OS4-native VIM 7.1 binary works quite well. i use it all the time.
@samo79 Yeah, that anyone who trying to port mui stuff to os4 it me :) Year ago i tried to port it, all compiles, binary done, then crashes in some place. I was about to fix it, but then other deals take my time.
Incedially i think about fixing it yesterday :)
I also was in contact with current mantainer of it, and he was very positive if i will make necessary os4 changes and share them on SF.
@All In case anyone interested: i give it another go, and was able to build latest version of that vim-with-mui from Ola Söder : all compiles, binary done, it starts, have menu, the bar working, all fine, just the whole rendering missed by some reassons. There are screenshot:
(click on image for fullsize)
I had to adapt gui_mui.c a bit to make it compiles for os4, like this:
# define CLASS_DEF(C) \
static IPTR C ## Dispatch (void); \
static struct MUI_CustomClass * C ## Class; \
const struct EmulLibEntry C ## Gate = \
{ TRAP_LIB, 0, (void (*) (void)) C ## Dispatch }; \
struct C ## Data
#elif __amigaos4__
# define DISPATCH_HEAD
# define DISPATCH_ARGS Class *cls, Object *obj, Msg msg
# define DISPATCH_GATE(C) C ## Dispatch
# define CLASS_DEF(C) \
struct MUI_CustomClass * C ## Class; \
struct C ## Data
#else
# define DoSuperNew(C,O,...) DoSuperNewTags(C,O,NULL,__VA_ARGS__)
# define DISPATCH_HEAD
# define DISPATCH_ARGS Class *cls, Object *obj, Msg msg
# define DISPATCH_GATE(C) C ## Dispatch
# define CLASS_DEF(C) \
struct MUI_CustomClass * C ## Class; \
struct C ## Data
#endif
#define DISPATCH(C) static IPTR C ## Dispatch (DISPATCH_ARGS)
#define CLASS_DATA(C) C ## Data
#define TAGBASE_sTx (TAG_USER | 27<<16)
#define MUIDSP static inline __attribute__((always_inline))
But that macro stuff mostly about mui which is workking, dunno why rendering may fail .. Dunno if it those RPTAG_ things, but at least for all other ports i use it like this and all works.
@all Making some tests today, and seems issue with rendering related to those RPATAGs, pens, SetRPAttr, JAM1/JAM2 and all this with cybergraphics emulation.
And then rendering start to looks like this (click on image for fullsize):
See yellow letters can be visibly now.
But funny thing is , that actually values does not matter. Any other values i put there, its always yellow letters on that grey background which i can't change not by mui settings in any component (that expected, as mui there only give a window to which draw), and not by prefs:GUI thing.
You should be sure that the alpha value of the color for RPTAG_APenColor/RPTAG_BPenColor is set correctly. (0xAARRGGBB) Differently than described in the documentations, the alpha value is used e.g. in text rendering.